Re:YAML: probably not so great after all (2017)
by gaius on Wednesday June 20, 2018 @03:41PM
(#17358995)
JSON lacks comments (both line-level and block level)
Simples
[ Parent
| on HN ]
Re:YAML: probably not so great after all (2017)
by lomnakkus on Wednesday June 20, 2018 @03:48PM
(#17359064)
That doesn't work if you use a strict parser where superfluous fields are an error. It's quite rare, but there are good use cases for that kind of strictness.
Re:YAML: probably not so great after all (2017)
by cesarb on Wednesday June 20, 2018 @04:27PM
(#17359440)
Or when no fields are superfluous. For instance, when the code iterates over all the fields and does something with each, instead of just looking for known keys.
Re:YAML: probably not so great after all (2017)
by inimino on Wednesday June 20, 2018 @05:12PM
(#17359825)
Or when the place you need to put the comment doesn't happen to be inside an object literal.
Re:YAML: probably not so great after all (2017)
by Carpetsmoker on Wednesday June 20, 2018 @05:55PM
(#17360165)
This is ugly.