Project

General

Profile

Actions

Bug #12827

closed

Add Boolean data type.

Added by ioquatix (Samuel Williams) about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:77546]

Description

It's not clear to me why there isn't a Boolean class which can have values true and false.

There are benefits to this. An example of where this is an issue is people who write ORM. For example, in sequel gem, they use "TrueClass" for a boolean column.

The naming of TrueClass and FalseClass are also inconsistent with other names, e.g. it's not IntegerClass or FloatClass or StringClass.


Related issues 3 (0 open3 closed)

Related to Ruby master - Feature #20756: Introduce Boolean classRejectedActions
Related to Ruby master - Feature #20882: Provide Boolean(...)RejectedActions
Is duplicate of Ruby master - Feature #12515: Create "Boolean" superclass of TrueClass / FalseClassRejectedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0