[MOBY-l] Boolean object
Gary Schiltz
gss at ncgr.org
Thu Mar 3 17:58:09 UTC 2005
I think I'm in Paul's camp here, although I notice that the W3C
recommendation on XML Schema allows true, false, 1, and 0 as valid
lexical values for booleans (see www.w3.org/TR/xmlschema-2/#boolean).
But then, they say that the "canonical representation" for booleans is
true and false. I am still confused as to the difference between the
lexical and canonical representations.
// Gary
Paul Gordon wrote:
> May I suggest that the boolean primitive have the one of the values
> "true" or "false", not "0" or "1". This would alleve any confusion
> with integers, is more human readable, and is valid since "0" and "1"
> in Boolean logic are only arbitrary symbols in a lattice system (i.e.
> it is the union, intersection and negation functions that define the
> logic, not the symbols used).
More information about the moby-l
mailing list