2 ms·
Flat is better than nested. I'd argue that's enough for TOML to be more pythonic than YAML.
by baq 3y ago
Flat is better than nested.
I'd argue that's enough for TOML to be more pythonic than YAML.
- globular-toast 3y agoBoth TOML and YAML support nesting. TOML simply looks flat even when it's not, so it's the worst of both worlds. In any case, it's not the format that is nested or flat, it's the content. Python itself supports nesting. The zen of Python merely says you shouldn't use the nesting when flat is an option.