Re: [YAML] To quote or not to quote (I think it's a bug)
"Clark C. Evans" <[email protected]>
| Newsgroups | gmane.text.yaml.general,gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <[email protected]> |
This is horrible, IMHO. It has to be fixed. I'm very sorry for the late response. Clark On Tue, Feb 20, 2007 at 04:17:20PM +1100, Daniel Sheppard wrote: | > So clearly they're allowed, in 1.2_3 the underscore is simply | > ignored and | > the parser should undestand 1.23. If I fancy to write my own | > YAML by hand | > and make it easily readable (which is kind of the original | > purpose) I could | > write 100_000_000.03 which would be a nice looking float. Hence the | > ambiguity with "1.2_3" | | Hmmmm... I just noticed that the specification | (http://yaml.org/type/float.html) isn't just unclear, it's inconsistent. | | The examples listed include: | | exponentioal: 685.230_15e+03 | | Notwithstanding the spelling of exponential, that example is not | consistent with the regular expression (which allows underscores only if | they preceed the decimal point - | [-+]?([0-9][0-9_]*)?\.[0-9.]*([eE][-+][0-9]+)?). | | Dan. | | ------------------------------------------------------------------------- | Take Surveys. Earn Cash. Influence the Future of IT | Join SourceForge.net's Techsay panel and you'll get the chance to share your | opinions on IT & business topics through brief surveys-and earn cash | http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV | _______________________________________________ | Yaml-core mailing list | [email protected] | https://lists.sourceforge.net/lists/listinfo/yaml-core ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV