Comment on Introducing Pkl, a programming language for configuration
Lodra@programming.dev 9 months ago
Disclaimer: I don’t yet understand why this is valuable.
I looked through the yaml example a bit. It looks pretty rough. This really makes familiar and readable yaml into much longer configuration. It’s much harder to read. First impression is a pass.
abhibeckert@lemmy.world 9 months ago
The big advantage is IDE integration.
You can type
price = 42.501
and instantly be told, right there as you edit the file, that you entered an invalid value (too many decimal places for a currency value). You can also be told that you forgot to specify a price.Finally, the price property can have documentation (by simply using three slashes for your comment, instead of two) which will be visible in most IDEs by simply hovering your mouse over the word “price”.