General

Profile

sanfrecce-osaka (Masatoshi Moritsuka)

  • Login: sanfrecce-osaka
  • Registered on: 01/20/2026
  • Last sign in: 01/20/2026

Issues

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

Activity

03/21/2026

02:36 AM Ruby Feature #21857: Introduce to_proc pattern
> Could you add why one would prefer writing `users in [*, &:admin?, *]` over `users.any?(&:admin?)`?
Pattern matching can be combined with As pattern to both check whether something matches and bind the matched value to a variable at...
sanfrecce-osaka (Masatoshi Moritsuka)

02/01/2026

11:56 PM Ruby Feature #21857 (Assigned): Introduce to_proc pattern
When object has some logics, we can use `&object` syntax with Enumerable or Array, etc.
```ruby
users.any?(&:admin?)
```
There are some times when I want to write pattern matching similar to the syntax, but currently we either ha...
sanfrecce-osaka (Masatoshi Moritsuka)

12/29/2024

11:00 AM Ruby Revision 3650f246 (git): [ruby/irb] Fix broken `history` command with -g
(https://github.com/ruby/irb/pull/1057)
Local variable `grep` was always nil because the regular expression parsing options contained an unnecessary `\n`. `test_history_grep` did not detect this because it only asserted what was include...
sanfrecce-osaka (Masatoshi Moritsuka)

09/24/2024

10:06 PM Ruby Revision 6b46060f (git): doc: Remove description of experimental warnings related pattern matching from documentation
Ruby 3.2.0 has been released and all experimental warnings about pattern matching have been removed.
Experimental warnings about pattern matching are no longer output, so I remove description about it from documentation as well.
cf. htt...
sanfrecce-osaka (Masatoshi Moritsuka)

Also available in: Atom