Replies: 2 comments
-
Right now, only the standard library (code that ships with Pkl itself) can define type parameters. There is an open feature request to allow user-defined type parameters here: #494 I definitely see the usefulness of this, but, I think we're not close yet to enabling something like this (see my comment on that issue). |
Beta Was this translation helpful? Give feedback.
0 replies
-
@bioball , thanks so much for the clarification! Would love to see more progress on this feature. Looking forward to future iterations. pkl really rocks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Community,
I'm trying to define a class with type parameters, but got error message from IDE: "Type parameters are only allowed in standard library". Is this only possible when the class is part of pkl core or we can define our own library with generic class? It will be quite useful to be able to define generic classes to reuse logic and avoid duplications.
Thanks a million in advance for the help.
Beta Was this translation helpful? Give feedback.
All reactions