Skip to content

Generics

Generic support is currently limited and still evolving.

Practical guidance for now:

  • prefer concrete APIs in production code
  • keep reusable behavior in small typed helpers
  • track compiler updates before relying on advanced generic patterns

When the compiler generic surface is stabilized, this page will include canonical syntax and constraints.