Re:Pkl, a Programming Language for Configuration
by jen20 on Saturday February 03, 2024 @01:25AM
(#39238017)
Probably secret option number 3 of no-one having needed it yet - because the tool is standalone, you can render the required output before running whatever needs to consume it. I’ve certainly used it from Python in that manner - bindings are only required if you want to consume the raw language programmatically from a Python context.
[ Parent
| on HN ]
Re:Pkl, a Programming Language for Configuration
by mimischi on Saturday February 03, 2024 @01:32AM
(#39238042)
Exactly this. Pkl is most useful as a type-safe configuration language that can output to any other format (already supported, or put together by the user within Pkl). You’ll always get valid JSON, YAML, PLIST, what-have-you as output. This you can then parse in the language/system of your choice.
Certainly language bindings are useful, and if there’s demand likely someone will create them.