
22 Sep
2023
22 Sep
'23
2:53 a.m.
Issue #13933 has been updated by duerst (Martin Dürst). Dan0042 (Daniel DeLorme) wrote in #note-9:
because `true<=>true` is 0 (and arguably it should be nil but that's another topic).
Are you saying that true shouldn't be equal to true? That would be strange, at least to me. ---------------------------------------- Feature #13933: Add Range#empty? https://bugs.ruby-lang.org/issues/13933#change-104717 * Author: ted (Ted Johansson) * Status: Open * Priority: Normal ---------------------------------------- Range already responds to #size. It would be nice if it also responded to predicate #empty? :-) -- https://bugs.ruby-lang.org/