As per the quote below, is Boolean still on the agenda? I accept that it may
not be very useful, but it’s at least a little bit useful, and it just seems so
strange not to have it!
I’d also (primarily?) like a function Boolean(x) → true or false.
Is there any special reason why TrueClass and FalseClass are direct
subclasses of Object? I stumbled across this (IMHO problem) when I
See ToDo:
- introduce Boolean class; super of TrueClass, FalseClass
But I’m not sure how useful it is in the dynamic typed language like
Ruby where everything except false' and
nil’ is considered as true.
The instance of TrueClass - `true’ - is merely a representative value
of trues.
[Matz]
</ruby-talk:15909>
···
–
Gavin Sinclair Software Engineer
Sydney, Australia Soyabean Software Pty Ltd