General

Profile

jeromepl (Jerome Parent-Levesque)

  • Login: jeromepl
  • Registered on: 09/11/2024
  • Last sign in: 03/15/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

03/15/2025

07:21 PM Ruby Bug #21185: Range#overlap? is not commutative with doubly-unbounded range argument.
https://github.com/ruby/ruby/pull/12937 jeromepl (Jerome Parent-Levesque)
07:01 PM Ruby Bug #21185 (Closed): Range#overlap? is not commutative with doubly-unbounded range argument.
In https://bugs.ruby-lang.org/issues/20725 the following:
``` ruby
(nil..nil).overlap?(..3)
```
was fixed to output `true` instead of `false`.
However, when reversing the order of the arguments the output is wrong:
``` ruby
(..3...
jeromepl (Jerome Parent-Levesque)

09/12/2024

01:03 PM Ruby Bug #20725 (Closed): Inconsistent handling of doubly-unbounded ranges in Range#overlap?
The new `Range#overlap?` method does not seem to have a clear definition of how it behaves when passed ranges with nil begin **and** end `(nil..)`.
In the following two cases, it seems to treat this type of range as an "infinite" rang...
jeromepl (Jerome Parent-Levesque)

Also available in: Atom