TOML in Python
TOML in Python
I finally got around to fully learning TOML . Some notes, including how to read and write it from Python.
I love toml. It's so natural. I use it all the time (for smaller configs)
2 0 ReplyI think yaml was a perfectly fine way to express a hash/dict like config. I am surprised that toml was so widely adopted by the community.
2 1 ReplyYAML is extremely complex for a configuration format and it has many really weird edge cases:
The problem is IMHO made worse because it looks so friendly at first glance.
8 0 ReplyYaml is fine until you want to abbreviate Norway and get false... toml doesn't handle everything well but at least it doesn't have insane problems like that.
7 0 ReplyWhile that shouldn't happen with a current-spec YAML parser, I agree even the current spec does way too much with types.
I've come to love NestedText's approach of leaving all type handling to the ingesting code.
5 0 Reply
As someone who had tried to wrap their mind around YAML spec...
Fuck yaml. It is ridiculous how much junk there is in that spec.
6 0 Reply