From: Tim P. <ti...@po...> - 2004-08-05 19:59:22
|
On Thu, 2004-08-05 at 20:04, why the lucky stiff wrote: > i've been updating Syck against the current spec and tag repository. > and just a coupl'a things i noticed: > > * in example 2.20: > > negative infinity: (-inf) > not a number: (NaN) > > what are the parens? and '-inf' doesn't match the '-.inf' in > http://yaml.org/tags/float.html > > * in example 2.21, we see the new 'y' and 'n' implicits: > > null: ~ > true: y > false: n > string: '12345' > > then, in example 2.24, 'y' is used as a key in a map describing a point: > > - !^circle > center: &ORIGIN {x: 73, y: 129} > radius: 7 > > boolean, yes? I hadn't realised that the implication of the examples was that a parser should try and 'guess' what sort of variable it's getting. I presumed that all values are strings unless stated otherwise. It seems a little precarious as is demonstrated by why's example. Does anybody else feel that this could lead to tears or is the consensus that this is justified in terms of ease of use? Tim |