News for hackers. Stuff that matters.
Re:Bugs in the YAML specification by junke on Sunday September 04, 2016 @04:43PM (#12426618)
Yet, a lot of hierarchical structures I see are full of "ref" and "id" attributes, which effectively encode cyclic graphs.
Re:Bugs in the YAML specification by OskarS on Monday September 05, 2016 @05:42AM (#12429162)
That's certainly true, but at least that's not going to cause an infinite loop while wandering down the structure, it's just gonna end at a leaf "ref" or "id".
Re:Bugs in the YAML specification by junke on Monday September 05, 2016 @07:49AM (#12429618)
In my view this is more a question of simple interface vs. simple implementation. Having cross-references at the language level gives a uniform and simplified interface at the cost of more having to develop careful tools.

Not saying refs/id are bad, but at least with a uniform syntax and language support, you don't have to reimplement custom cross-reference resolvers.