by jasonlotito · 6y ago · 0 comments
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...Because it reduces syntactic noise and increases informational density.
Most other serialization formats end up putting in indentation anyway to make them readable (JSON, TOML).
- country: NO
Of course it's booleanWhen 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?
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.