From: matz@... Date: 2020-02-27T07:59:02+00:00 Subject: [ruby-core:97285] [Ruby master Feature#16605] Support argument delegation (...) with blocks/define_method Issue #16605 has been updated by matz (Yukihiro Matsumoto). Status changed from Open to Rejected You may think it's handy. But it's far more complicated than you think. For example, `define_method` may be called from a method with argument forwarding. At least for the moment, it does not worth the cost of implementation/complexity. Matz. ---------------------------------------- Feature #16605: Support argument delegation (...) with blocks/define_method https://bugs.ruby-lang.org/issues/16605#change-84403 * Author: svoop (Sven Schwyn) * Status: Rejected * Priority: Normal ---------------------------------------- (I couldn't find anything on this in the bug tracker or other official sources, hope it's not a duplicate since it's kind of tricky to search for it.) The following doesn't work on Ruby 2.7: ``` define_method(:delegate) do |...| # <-- syntax error target(...) end ``` Are there any plans to support argument delegation in block arguments? -- https://bugs.ruby-lang.org/ Unsubscribe: