Issue #12129 has been updated by Jrg W Mittag.


bug hit wrote:
> Yukihiro Matsumoto wrote:
>> Describe more concretely and preferably tell us why do you need it, please.
> `object_expression:method_name_expression(1, 2)`
> 
> would be sugar for
> 
> `object_expression.__send__(method_name_expression, arg1, arg2)`

Please, for the love of all that is holy, regardless of whatever syntax sugar you choose, make it translate or equivalent to `public_send`, not `__send__`!

----------------------------------------
Feature #12129: syntactic sugar for dynamic method dispatch `object_expression:method_name_expression(1, 2)`
https://bugs.ruby-lang.org/issues/12129#change-57414

* Author: bug hit
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>