Replies: 1 comment 3 replies
-
Thanks for the idea! Can you describe what the goal of this feature is? What are some practical applications that benefit from this keyword? FYI: Pkl classes are "final" by default, and cannot be extended without the You might have noticed that classes today can have their properties overridden to be any other type. This is something we might change in the future, to require that a property is a sub-type of the overridden type. Is that what you mean by |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
Very new to pkl, of course, but messing around and it seems like there's room for a
final
keyword. I could just be missing something in the docs, but there is a use case for classes and abstract classes that cannot be significantly changed when extended.For example, see below:
Beta Was this translation helpful? Give feedback.
All reactions