From: merch-redmine@... Date: 2020-06-19T16:22:04+00:00 Subject: [ruby-core:98891] [Ruby master Feature#16378] Support leading arguments together with ... Issue #16378 has been updated by jeremyevans0 (Jeremy Evans). File ruby_2_7_lead_args_forwarding.patch added mame (Yusuke Endoh) wrote in #note-15: > @JeremyEvans0 If nagachika-san agreed with the backport, can you create a patch for backport? Backport patch attached, in case @nagachika approves. ---------------------------------------- Feature #16378: Support leading arguments together with ... https://bugs.ruby-lang.org/issues/16378#change-86266 * Author: Eregon (Benoit Daloze) * Status: Closed * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: 3.0 ---------------------------------------- I think this is very important, otherwise `...` can be used only very rarely. For instance, `method_missing` typically want to access the method name like: ```ruby def method_missing(name, ...) if name.to_s.end_with?('?') self[name] else fallback(name, ...) end end ``` See the original feature: https://bugs.ruby-lang.org/issues/16253#note-19. I think most people expect `def method_missing(name, ...)` to work. ---Files-------------------------------- ruby_2_7_lead_args_forwarding.patch (8.98 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: