by eviks · 2y ago · 0 comments
key1=value1 # this is a proper key1 comment, if you move a line, it stays with key1
key2=value2 # it also doesn't break the table
# and you don't need to write a config parser
# nor modify a syntax highlighter
# nor make sure other people use your comment style
Given a choice, I'd even opt XML over YAML.
No, you were pointing out that some people won't like that solution. Which is completely fine. And yes, that solution is ugly as hell, and it is a dirty hack, and I don't recommend actually doing that if there is a better way (like TOML).
But it does work.
you're just paraphrasing the obvious - it's not a solution. And YAML is a better way and addresses the problem you choose to ignore as such - ugliness.