Actions
Feature #14224
closedBoolean class
Feature #14224:
Boolean class
Status:
Rejected
Assignee:
-
Target version:
-
Description
Suggestion: TrueClass and FalseClass inheriting from Boolean (new superclass).
This would make true/false checking easier, like:
Currently we have to check for both classes:
In high-level APIs this would be beneficial, for example in RSpec:
Currently, we have to check like this:
Or another similar workaround.
I would like to provide a patch if this is acceptable.
Actions