Email or username:

Password:

Forgot your password?
Top-level
drusk

@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

4 comments
Lawrence Pritchard Waterhouse

@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.

Lawrence Pritchard Waterhouse

@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...

drusk

@lpwaterhouse Fair points. Also someone had the great idea of templating yaml.

Go Up