Re: YAML declarativeness

William Spitzak <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>

Clark C. Evans wrote:
> On Sun, 07 Feb 2010 16:48 +0100, "Roald de Vries" <[email protected]>
> wrote:
>> Why is this not allowed in YAML:
>>
>>      - *id001
>> - &id001 some string
> 
> We had a requirement that YAML shouldn't require processors to 
> load the entire document before linking and returning the result.  
> If you permitted this, it'd complicate or rule-out any sort of 
> streaming.

So yaml cannot be used to store an arbitrary directed graph (ie with a 
loop)? It is limited to only directed acyclic graphs?

PS: In our program we certainly are allowing forward references, despite 
the fact that the data is a DAG, as the order of the items in the list 
is being used for other purposes (the stacking order in the display). I 
am also preserving the anchor/tag values in our data, which is also 
against the yaml spec, though...


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
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.