From: Clark C. E. <cc...@cl...> - 2004-02-26 04:16:37
|
This isn't so cut and dry. The distinction between 'plain' and 'quoted' scalars isn't in the YAML Representation, so it need not be preserved. Correct? On Thu, Feb 26, 2004 at 12:19:52AM +0200, Oren Ben-Kiki wrote: | I would not be playing "fast and loose" with YAML, it would be the | loader that does that. It is the same thing as if it has changed the | following document: | | --- | false: 12 | ... | | Into this one: | --- | "false": "12" | ... I don't see the problem. This is all schema specific stuff, I mean, wart handling specific (*grins*) -- its the price we pay for not wanting two types of scalars. Unless, well, unless we want to make the wart a bit more offical and add an additional "kind", giving us: MAP, SEQ, PLAIN SCALAR, NON-PLAN SCALAR. And then, due to the tag implies kind association, one can't use both !int "23" and 23. It's a wart. We can't have it both ways. Either it is significant and we must maintain the distinction (not a good option), or it is not signficant and if someone uses it to 'indicate' something then, well, they risk having that distinction lost. Best, Clark |