News for hackers. Stuff that matters.
Re:CoffeeScript hits 1.0 -- Happy Holidays, HN by TomasSedovic on Friday December 24, 2010 @09:24PM (#2038399)
I'm afraid that's not correct. You can use arbitrary number of spaces to indent a block in YAML[1]. It does't matter if it's 2 of 4 or 17.

The only limitations are that it must be greater than the indentation of the parent node (obviously), that all siblings must have the same indentation and that tabs are not allowed.

Are you sure you're not mistaking this with HAML? It's a bit stricter with the indentation requirements.

[1]: http://www.yaml.org/spec/1.2/spec.html#id2777534

Re:CoffeeScript hits 1.0 -- Happy Holidays, HN by jamesbritt on Saturday December 25, 2010 @06:04PM (#2039552)
"I'm afraid that's not correct. You can use arbitrary number of spaces to indent a block in YAML[1]."

Well, shit.

Thanks; how did I miss that?

"Are you sure you're not mistaking this with HAML? It's a bit stricter with the indentation requirements."

Oh, that I know. One reason I avoid it.