brenogazzola (Breno Gazzola)
- Login: brenogazzola
- Registered on: 05/20/2022
- Last sign in: 09/03/2025
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
05/25/2022
-
12:59 PM Ruby Bug #18793: Select and Find behave differently for hashes
- Yeah, I had noticed the difference, but I assumed that "method missing = bug". But you are right. That would be a breaking change for a lot of projects (I hand't thought of that).
05/20/2022
-
04:30 PM Ruby Bug #18793 (Rejected): Select and Find behave differently for hashes
- It seems that Hash implements select but not find, which uses the Enumerable version.
``` ruby
irb(main):009:0> { 1..10 => :a, 11 .. 20 => :b }.select { _1 === 12 }
=> {11..20=>:b}
irb(main):010:0> { 1..10 => :a, 11 .. 20 => :b }...