Re: (no subject)

Kirill Simonov <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Hi Burt,

> I’d like to verify something.   It came up testing my parser, and seems 
> counter intuitive.   Should
> 
>   ---
> 
>   ? a : b
> 
>   …
> 
>  
> 
> be a single mapping { a : b }  nested mappings with an empty outer value 
> { { a : b } : } ?

The latter is valid.  If you need the former, use

? a
: b

Also consider

? a: b
   c: d
: e: f
   g: h

It should produce

{{a: b, c: d}: {e: f, g: h}}


Thanks,
Kirill

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.