4 ms·
> The world desperately needs a replacement for YAML. The world desperately needs support for YAML 1.2, which solves the problems the article addresses fairly
by dragonwriter 6y ago
> The world desperately needs a replacement for YAML.
The world desperately needs support for YAML 1.2, which solves the problems the article addresses fairly completely (largely in the “default” Core schema[0], but more completely with the support for schemas in general), plus a bunch of others, and has for more than a decade. But YAML 1.2 libraries aren’t available for most languages.
[0] not actually an official default, but reflects a cleanup of the YAML 1.1 behavior without optional types, so its defaultish. Back when it looked like YAML 1.3 might happen in some reasonably-near future, it was actually indicated by team members that the JSON Schema for YAML (not to be confused with the JSON Schema spec) would be the explicit default YAML Schema in 1.3, which has a lot to recommend it.
- tormeh 6y agoNope nope nope. YAML is awful and needs to die. The more you look at it the worse it gets. The basic functionality is elegant (at least until you consider stuff like The Norway Problem), but the advanced parts of YAML are batshit insane.
- dragonwriter 6y ago“The Norway Problem" is a YAML 1.1 problem, of which there are many. What advanced parts of YAML are you talking about that remain problems in YAML 1.2?
- medstrom 6y agoFrom the article: > The most tragic aspect of this bug, howevere, is that it is intended behavior according to the YAML 2.0 specification.
- dragonwriter 6y agoThe article is simply, factually wrong; there is no “YAML 2.0 specification” [0], and everything they point to is YAML 1.1, and addressed in YAML 1.2 (the most recent YAML spec, from 2009.) [0] https://yaml.org/ https://yaml.org/