@david_chisnall “they’ve added mechanisms for mutating existing things” - what feature in Pkl is this referring to?
It’s documented under lists. You can modify list elements from earlier, but it’s also generically an imperative language so you can do arbitrary mutations, whereas the early version I looked at was purely declarative.
I really like the way UCL did this, with explicit merge policies, but it had problems in practice because deleting a node and replacing it vs mutating one field were hard to specify, so you often ended up copying more than you needed.
The approach of an imperative language that creates objects against a verifiable schema and then exposes those as a well-defined data model is what I actually want.
@david_chisnall @mxey 👋 Hiya I’m a maintainer of Pkl. A colleague sent me a link to this thread.
All state in the language is still immutable and there haven’t been changes to the functional, lazy, late-bound language semantics. Mutation methods and object amending always produce new values with the mutation applied.
I’m happy to answer any questions you might have about the language or its design choices!