General

Profile

shouichi (Shouichi Kamiya)

Issues

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

Like

Activity

09/21/2023

06:10 AM Ruby master Feature #19839: Need a method to check if two ranges overlap
Asked them in their discord channel. https://discord.com/channels/849034466856665118/974005005768069211/1154298190120... shouichi (Shouichi Kamiya)

09/19/2023

09:34 AM Ruby master Feature #19839: Need a method to check if two ranges overlap
Because `(...-Float::INFINITY)` is semantically empty, shouldn't `none?` return `true`? shouichi (Shouichi Kamiya)
12:31 AM Ruby master Feature #19839: Need a method to check if two ranges overlap
Shouldn't `none?` handle empty ranges? Currently, it raises an error.
```
> (...-Float::INFINITY).none?
(irb):1:...
shouichi (Shouichi Kamiya)

09/16/2023

05:57 AM Ruby master Feature #19839 (Closed): Need a method to check if two ranges overlap
Applied in changeset commit:git|e9b503f1bb9692eda1d1f55f62c19d861b88a0d5.
----------
[Feature #19839] Add Range#over...
shouichi (Shouichi Kamiya)
05:57 AM Ruby master Revision e9b503f1 (git): [Feature #19839] Add Range#overlap?
Add a method that returns true if two range overlap, otherwise false.
```
(0..10).overlap?(5..15) #=> true
(0..10).o...
shouichi (Shouichi Kamiya)

09/15/2023

08:46 AM Ruby master Feature #19839: Need a method to check if two ranges overlap
I opened a PR about a month ago but should I close it...? https://github.com/ruby/ruby/pull/8242 shouichi (Shouichi Kamiya)

09/13/2023

05:19 AM Ruby master Feature #19839: Need a method to check if two ranges overlap
Honestly, I can't give a formal reason. But I do believe it's a very basic operation. For example, postgres and boost... shouichi (Shouichi Kamiya)

09/12/2023

08:54 AM Ruby master Feature #19839: Need a method to check if two ranges overlap
Though ActiveSupport's `overlaps?` method is enough for our use-case. I think the feature is so fundamental that it s... shouichi (Shouichi Kamiya)

08/18/2023

06:56 AM Ruby master Feature #19839: Need a method to check if two ranges overlap
Thank you for your feedback.
> I've made several helpers for this exact same problem, as well as a `Range#merge` i...
shouichi (Shouichi Kamiya)
01:30 AM Ruby master Feature #19839 (Closed): Need a method to check if two ranges overlap
It would be convenient to have a method that checks if two ranges overlap. For example,
```
(0..10).overlap?(5..1...
shouichi (Shouichi Kamiya)

Also available in: Atom