From: Marnen Laibow-Koser Date: 2009-12-31T18:49:38+09:00 Subject: Re: Where to find a description of yaml for ruby? Phillip Gawlowski wrote: > On 31.12.2009 06:45, Albert Schlef wrote: > >> You know, I'm beginning to hate YAML. It loooked deceivingly simple at >> first. But it turns out it's quite complicated. XML is quite simple by >> comparison. > > See that guy in the corner? Twitching and twisting? He wrote an ANT > makefile once. ;) > > But one thing is annoying with YAML: Significant whitespace. \t or a > proper space have different meanings, as does the amount of space. Tabs are not allowed in Yaml files, precisely in order to cut down confusion. The significant indentation is very clear and straightforward. I actually think it works well in context. > > Ain't it grant that > require "yaml" > var = Object.to_yaml # or dump, if you want to write a file > another_var = YAML.load var > > makes it so very easy to use? And it can be read (not necessarily > written) by humans, too. I find Yaml easy to write...I'd rather write it than XML any day. > > Try reading and writing XML in just one three lines! ;) There's no comparable XML library? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.