Re: YAML declarativeness
"Clark C. Evans" <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
On Feb 8, 2010, at 13:36, William Spitzak <[email protected]> wrote: > > > 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? --- &cyclic - *cyclic # graphs are permitted ... > 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