# Re: TrueClass/FalseClass vs. Boolean

**URL:** <https://www.ruby-forum.com/t/re-trueclass-falseclass-vs-boolean/56487>\
**Category:** Ruby\
**Created:** [March 31, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/re-trueclass-falseclass-vs-boolean/56487 "2006-03-31T17:33:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [March 31, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/re-trueclass-falseclass-vs-boolean/56487/1 "2006-03-31T17:33:31Z")

</div>

> > when Boolean
> 
> would undoubtably lead to some nice logical constructs that  
> more closely parallel the way we think.

Think ‘NULL’ in databases, where ‘NULL’ is may not mean true or false,  
but unknown. At the moment, NULL maps to nil, which is false.

> i’ve brought this up once or twice before - maybe we should  
> just put together a patch and send to ruby-core?

It’s been proposed and rejected by Matz once already.

Regards,

Dan

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [March 31, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/re-trueclass-falseclass-vs-boolean/56487/2 "2006-03-31T17:36:39Z")

</div>

On Sat, 1 Apr 2006, Berger, Daniel wrote:

> Think ‘NULL’ in databases, where ‘NULL’ is may not mean true or false,  
> but unknown. At the moment, NULL maps to nil, which is false.

yup. good example.

> > i’ve brought this up once or twice before - maybe we should  
> > just put together a patch and send to ruby-core?
> 
> It’s been proposed and rejected by Matz once already.

i seem to recall this… link? wonder why he rejected…

cheers.

-a
