|
|
|
|
|
by hnlmorg
101 days ago
|
|
It isn’t incompatible. It’s just a massive superset of what is needed. JSON offers simplicity YAML offers readability XML offers a massive feature set. For what we need 99% of the time, simplicity and/or readability is a much higher requirement. As for TOML, I honestly don’t understand why anyone likes that. |
|
The obvious way is to use elements for everything, but then you're mapping both structs and their fields (very different concepts in e.g. C) to elements. Attributes map nicely to struct fields, but they only admit string values.