Issue #12129 has been updated by bug hit.


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)`

like any sugar, you can live without it, but I think a dynamic language should have it.

e.g. in javascript: `object_expression[method_name_expression](arg1, arg2)`


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

* 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>