[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77546] [Ruby trunk Bug#12827] Add Boolean data type.
From:
samuel@...
Date:
2016-10-11 02:22:34 UTC
List:
ruby-core #77546
Issue #12827 has been reported by Samuel Williams. ---------------------------------------- Bug #12827: Add Boolean data type. https://bugs.ruby-lang.org/issues/12827 * Author: Samuel Williams * Status: Open * Priority: Normal * Assignee: * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>