Open moritztim opened 6 months ago
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.
We also have some bugs with type parameters in the core language that will need to be fixed before we can start to consider something like this.
But why?