Actions
Feature #19698
openNeed an idiomatic way to define an empty range
Feature #19698:
Need an idiomatic way to define an empty range
Status:
Open
Assignee:
-
Target version:
-
Description
It seems there is no idiomatic way to define an empty range. We can define empty ranges in several ways such as
irb(main):001:0> (0...0).none?
=> true
irb(main):002:0> (1...-1).none?
=> true
I think the above examples do not communicate the intention well.
Actions