Re:Apple releases Pkl – configuration as code language
by styfle on Saturday February 03, 2024 @07:19AM
(#39239640)
Sounds like a job for JSON Schema
Re:Apple releases Pkl – configuration as code language
by bpicolo on Saturday February 03, 2024 @01:21PM
(#39243157)
Jumping back and forth between a JSON schema and writing valid JSON is not a very fun task
Re:Apple releases Pkl – configuration as code language
by worthless-trash on Saturday February 03, 2024 @07:17AM
(#39239633)
In your example, how is this different than incorrectly creating the data structure in any format ?
I'll be looking into cue, but how does it solve that problem ?
Something like Cuelang will:
- Define the schema that will let you know what you should put inside.
- Allow you to inflate that schema into a full file, providing only the values.
- Will generate always a correct file, with no typo, or format error.
- Will check that the data is correct and tell you if there are any errors.
- Is note theoretically tied to a particular run time or stack.