From: Nikolai Weibull Date: 2011-01-20T06:22:31+09:00 Subject: [ruby-core:34617] Re: [Ruby 1.9-Feature#4288][Open] Allow invoking arbitrary method names with foo."something" syntax On Wed, Jan 19, 2011 at 21:58, Gary Wright wrote: > On Jan 18, 2011, at 12:51 AM, Charles Nutter wrote: >> For non-standard or arbitrary method names, it would be nice to have a way to invoke them directly that doesn't require the parser to be made more complex nor require an intermediate "send" call. Groovy does this by allowing the following form: >> >> foo."asdf"() > ��foo.{some_variable}() > I've always found the use of Kernel#send for dynamic method dispatch to be a bit awkward and would prefer something that was syntactically similar to static method dispatch rather than the current dependency on the 'magic' behavior of Kernel#send. Could you explain how foo.{some_variable}() is less magic than foo.send(some_variable)? I am currently of the opposite opinion.