@druskus Today in no one should JSON for anything. Seriously, it'd do the *exact* same thing.
Top-level
@druskus Today in no one should JSON for anything. Seriously, it'd do the *exact* same thing. 5 comments
@druskus Not by much, many YAML *parsers* are crap, but the spec itself is actually designed to be a superset of JSON and doesn't *add* many cases. One example would be that it does the usual unix bullshit of treating 0123 as an octal number... I'm no fan of YAML, but in itself it really doesn't deserve the hate. @druskus And many of the things it adds would actually allow you to be far more strict, "Tags" are actually a way to express data-types concisely in-band, with JSON you *need* external schemas for that. Problem is: YAML is so simple that people don't read the spec and thus don't use these features... |
@lpwaterhouse Sure, correct me if I'm wrong, but JSON seems to have fewer of these gotcha moments.
It feels like YAML always tries to assume what your thing is supposed to be, instead of forcing you to do things.
The actual way would probably be some other alternative like dhall