From: Ola Bini Date: 2006-06-08T00:41:55+09:00 Subject: Re: YAML booleans. Ah! Sorry for not checking the archives. It seems slightly unintuitive, as I found out when I tried my version on this weeks Quiz. /O ----- Original Message ----- From: why the lucky stiff Date: Wednesday, June 7, 2006 4:52 pm Subject: Re: YAML booleans. To: ruby-core@ruby-lang.org > On Wed, Jun 07, 2006 at 06:42:33PM +0900, Ola Bini wrote: > > > > What I'm expecting (after looking at example 4.27 in the History > spec for > > YAML 1.0) is that both "a: y" and "a: n" should return the same > as "a: yes" > > and "a: no" respectively. > > > > This should be brought up on Yaml-core. (And has been before.) > The spec is > conflicting on this matter. Compare examples 2.21 and 2.24. > > >> YAML::load("{x: 73, y: 129}") > => {'x' => 73, 'y' => 129} > > Or should that be {'x' => 73, true => 129} ?? Too confusing. > > They previously eliminated '+' and '-' on similar grounds. Before > that, you > could do: > > --- > true: (y) > false: (n) > --- > true: (+) > false: (-) > > _why > >