6 ms·
This has some pretty great ideas within it. A few that stuck out to me in case others don't want to skim the full spec: Start with YAML/JSON/TOML, but then add
by eob 3y ago
This has some pretty great ideas within it. A few that stuck out to me in case others don't want to skim the full spec:
Start with YAML/JSON/TOML, but then add:
- Optionally strict typing and structs
- Inheritance
- Dynamically computed properties
- Functions & object methods, which are really more like computer properties
- If/Else conditionals, which are really more like a ternary
.. and managed to do it while still making it look like a simple config file.
The closest analogue from memory might actually be Terraform.
The one thing that had me squinting was the object extension syntax. It looks powerful.. and I understand its value.. but wow that's ends up being eye-full of () {} and [] all in one code bock.
- slowmovintarget 3y agoDon't forget what's removed when compared with YAML... white space as nesting.