News for hackers. Stuff that matters.
Re:Programmers and Sadomasochism by DannoHung on Sunday February 22, 2009 @10:54AM (#490651)
I wish someone had invented YAML before SGML existed.

Then maybe we wouldn't have this problem.

Re:Programmers and Sadomasochism by snprbob86 on Monday February 23, 2009 @04:28AM (#491472)
SGML actually has some really nice properties explicitly designed to better handle parsing invalid files. The redundant close tags, for example, allow <b>this is bold <i>and italic</b> but not bold</i> -- these sorts of errors are made by people and it was a goal to handle those sorts of situations. Whether or not that was a good goal? Well, I guess that's part of this debate.
Re:Programmers and Sadomasochism by olavk on Sunday February 22, 2009 @12:13PM (#490691)
So, how do you parse invalid YAML unambiguously?
Re:Programmers and Sadomasochism by newt0311 on Sunday February 22, 2009 @06:42PM (#491011)
Don't insult SGML!! SGML is actually quite nice. With omitable and case-insensitive tags, its pretty easy to work with if it is used in its intended domain: document markup.

YAML is great for exchanging data but SGML and YAML target different problems.