Boolean class update?

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.

ruby-talk:15909

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' andnil’ 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

Hi,

···

In message “Boolean class update?” on 02/08/08, “Gavin Sinclair” gsinclair@soyabean.com.au writes:

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!

No one has told me enough usefulness yet.

						matz.