Only partially kidding here.
Only partially kidding here.
Classic example:
- containerPort: 7173
name: http
I think that's an object in a list? But it's not overly clear.And if I indented any of those lines wrong... - country: NO
Of course it's booleanBecause it reduces syntactic noise and increases informational density.
Most other serialization formats end up putting in indentation anyway to make them readable (JSON, TOML).
When studying the Yaml spec I discovered that a map property (key: value) can have not only a string as its key, but any value. Even a list. (cue screams)
the fact that I have to read the spec to figure out what's going on.
It should have been fairly simple to do this.
Why do I have to know the difference between ":" and "=" ...?
I thought HCL was one of the best attempts at a terse config language. Shortening foo { bar { bazz {} }} to foo bar baz{} cleans up plenty.
Someone in another thread mentioned using some LISP or LISP-like language to solve this problem.
Would something like TOML make things better here?
What would have been the solution?
Mature libraries with plenty of experience deploying into production.
Plus for small enough stuff, like configuration files, one can just plug XPATH as well, making the search for items even easier.
TBH, I have no experience with it. But, it sounds like if you need a configuration language with programmatic features, it would be more suited to the job than a general purpose programming language.