Actions
Bug #12827
closedAdd Boolean data type.
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.
Updated by shyouhei (Shyouhei Urabe) about 8 years ago
- Is duplicate of Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass added
Updated by shyouhei (Shyouhei Urabe) about 8 years ago
- Status changed from Open to Rejected
Do you have anything to add to https://bugs.ruby-lang.org/issues/12515 ?
Updated by byroot (Jean Boussier) 3 months ago
- Related to Feature #20756: Introduce Boolean class added
Updated by hsbt (Hiroshi SHIBATA) about 1 month ago
- Related to Feature #20882: Provide Boolean(...) added
Actions
Like0
Like0Like0Like0Like0