You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generics add a lot of complexity to the language, and is hard to get right. This is something we would like to add to the language at some point, but I would say that we're not close yet.
For example, one thing to consider is how to implement variance checking. Today, Pkl does not perform subtype checking, and this is not trivial because of type constraints.
bioball
changed the title
[Feature Request] Type parameters for Classes
[Feature Request] User-defined generics (type parameters for classes)
Jun 10, 2024
But why?
The text was updated successfully, but these errors were encountered: