3 ms·
> It's both hard for human to format correctly, and for library creator to make a compliant parser. It is actually very easy to format correctly, unless you do
by encryptluks2 5y ago
> It's both hard for human to format correctly, and for library creator to make a compliant parser.
It is actually very easy to format correctly, unless you don't understand the format. While it may challenging to make a compliant parser, many exists for multiple languages.
JSON isn't a viable replacement.. TOML doesn't support root level lists and has its own set of challenges and is a lot more ugly and difficult to understand for complex nested structures.
If you want to kill YAML then replace it with HCL.
- koolba 5y agoWhat’s HCL?
- CobsterLock 5y agoIt seems to be a HashiCorp Configuration Language, HashiCorp being the creators/sponsors of terraform (I don't know much about terraform or hashicorp)
- XorNot 5y agoTOML is atrocious. In trying to look ini-like its table and nested structures become completely inscrutable. I only ever deal with it by writing what I need in YAML and running a converter.
- encryptluks2 5y agoAgreed. I think HCL would make a nice replacement though.