Replies: 1 comment 1 reply
|
Hi there! This is something we've been tracking for a while now in #423 The major prerequisite for this feature (parse-time name resolution) landed recently, so progress on this is now unblocked! |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am wondering if Pkl can easily implement a concise shorthand feature for nested objects, similar to CUE and KCL.
Instead of writing multiple lines of boilerplate curly braces for a single value, users could chain properties together on a single line using colons or dots. This would drastically reduce configuration boilerplate and make nested object overrides much cleaner to read.
Below is an example CUE code(https://cuelang.org/docs/tour/basics/folding-structs/):
Would translate to JSON:
All reactions