General

Profile

tom_dalling (Tom Dalling)

  • Login: tom_dalling
  • Registered on: 09/01/2017
  • Last sign in: 03/30/2022

Issues

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

Activity

02/25/2022

10:55 AM Ruby Bug #17382: Segfault in String#inspect
I've attached code that reproduces the issue, along with output and the macOS crash report from my machine. Just run `bundle` and then `ruby segfault.rb`. It reliably segfaults for me within a minute or two on Ruby 2.7.5. I tried it on R... tom_dalling (Tom Dalling)

03/13/2018

07:36 AM Ruby Feature #14575: Switch Range#=== to use cover? instead of include?
The `Range#===` methods currently works in one of three different ways. The code is here: https://github.com/ruby/ruby/blob/df1cd0f438bd17a4d3fbe9077e0b308e0b25c4b5/range.c#L1151-L1158
1. If it's a range of "numeric values", it uses `...
tom_dalling (Tom Dalling)

09/01/2017

06:36 AM Ruby Feature #13581: Syntax sugar for method reference
What about triple colon `:::`?
```ruby
[1,2,3].map(&Math:::sqrt)
[1,2,3].each(&:::puts)
```
`::` is for looking up constants, so it kind of makes sense that `:::` is for looking up methods.
tom_dalling (Tom Dalling)

Also available in: Atom