From: mame@... Date: 2020-06-19T07:40:46+00:00 Subject: [ruby-core:98880] [Ruby master Feature#16378] Support leading arguments together with ... Issue #16378 has been updated by mame (Yusuke Endoh). @nagachika Can we backport this to 2.7.2? Strictly speaking, this is a new feature, but according to [public consultation about Ruby 3.0 keyword change](https://discuss.rubyonrails.org/t/new-2-7-3-0-keyword-argument-pain-point/74980), this seems important to mitigate the pain of the change in 2.7. Matz also agreed with the backport. @JeremyEvans0 If nagachika-san agreed with the backport, can you create a patch for backport? ---------------------------------------- Feature #16378: Support leading arguments together with ... https://bugs.ruby-lang.org/issues/16378#change-86255 * 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. -- https://bugs.ruby-lang.org/ Unsubscribe: