From: Ingy d. N. <in...@in...> - 2011-05-27 03:17:11
|
Greetings, I'll make an executive call and say that you should stick to the spec. The type repository is not kept up to date as well as the spec is. You may want to provide compatibility options to change your implicit typing if problems come up in the wild. Otherwise I would not worry about it. In my opinion, the default implicit typing should be even stricter, only happening on 'true' and 'false'. This is required for JSON compatibility and also gives us one simple way to express boolean values. Maybe in YAML 2.0 :) I would *highly* suggest that you don't ever *emit* anything other than those lowercase versions. Cheers, Ingy On Thu, May 26, 2011 at 8:14 PM, Jean-Sébastien Pédron < jea...@du...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello! > > The Core Schema (as found in YAML 1.2 specifications) defines some > types. Those types are also defined in the Tag repository > (http://yaml.org/type/). > > For instance, considering the Core Schema, the "tag:yaml.org,2002:bool" > type can have the following values: > o true o false > o True o False > o TRUE o FALSE > > But the same tag defined in the Tag repository defines more values (ie. > a combination of "yes/no/on/off"). > > Which definition one must follow? Or did I miss something with tag > resolution (quite possible)? > > Thank you! > > - -- > __ __ > \ \/ / Jean-Sébastien Pédron > \ / Yakaz > /_/ http://www.yakaz.com/ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.17 (FreeBSD) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk3eKBwACgkQa+xGJsFYOlOexgCfQQNV9+es+ACA7jmnA0TnEHdY > 5rEAn3XrhpEiX1fShg9Ih5o3wrroSOMO > =ffs5 > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Yaml-core mailing list > Yam...@li... > https://lists.sourceforge.net/lists/listinfo/yaml-core > |