Re: YAML declarativeness
"Clark C. Evans" <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
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. > ... even if YAML is purely declarative, and the following isn't > allowed either? > > - &id001 some string > - &id001 some other string > - *id001 This one was a bit more arbitrary. Either we could permit it, causing the 2nd entry to shadow the 1st, or we could consider it a syntax error. I think, given all the other flexibility in YAML, we thought it'd be better to treat this as an error rather than permit accidental shadowing. I hope this helps! Clark ------------------------------------------------------------------------------ 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