From: Robert Dober Date: 2006-04-21T18:45:18+09:00 Subject: Re: Zero is true, but it isn't ------=_Part_34370_1509344.1145612714771 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/21/06, Logan Capaldo wrote: > > > > Sorry if this is offensive, but since text doesn't really transmit > tone of voice, are you being sarcastic? That is why I am never sarcastic unless with people who know me, see how lucky U R. I wasn't seriously suggesting > changing ruby in this manner, that is too bad, I thought you were :( it was just sort of "this seems to jive > with the other uses of #=3D=3D=3D for the cases where the lhs side of #= =3D=3D=3D > represents a set of values". +true+ conceivably represents the set of > "true" values. The case idiom is so widespread look at it again case value when something, now something can meaningful be an instance of Range, Regexp, Class, and many more it cannot be an instance of TrueClass, FalseClass or NilClass. Seems somehow unorthogonal, and you put it vert clearly and nicely, well I thaught. With all due respect to Matz, having a TrueClass and a FalsClass with a single instance each (true and false for that matter) and them being not related whatsoever more than any other two objects * this point is often overlooked * seems confusing at least. Is there a good reason for it? The design of a Doubleton class Boolean having true and false as values seems so much preferable. Seems just odd to me. Well as a matter of fact we are OT. The topic was why is 0 not treated as false when in such context. I like it, especially the !!"" =3D=3D true thing is very useful. Maybe the !!0 =3D=3D true thing is less useful (BTW that is how I should ha= ve defined the #=3D=3D=3D above ;). So I am quite serious about that and - I did not take any offence. It is completely normal telling me "hey buddy you misunderstood what I said", and moreover I am used to it. Cheers Robert -- Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_34370_1509344.1145612714771--