From: Charles Oliver Nutter Date: 2011-01-20T07:32:38+09:00 Subject: [ruby-core:34628] Re: [Ruby 1.9-Feature#4288][Open] Allow invoking arbitrary method names with foo."something" syntax On Wed, Jan 19, 2011 at 8:53 AM, Nikolai Weibull wrote: > And, as demonstrated, isn���t #send good enough? * It's longer :) * It defeats optimization, since you have to bounce through a "send" call to get to the eventual call. In essence, send typically forces a slow-path dynamic dispatch all the time. foo."something" would be a literal dispatch to the target method. * The default form of send routes around visibility. That's not always what you want. * On 1.8, send deepens the exception backtrace. The syntax proposed is basically a quoting mechanism for literal method calls. It doesn't replace send, it just expands what you can do with direct call syntax. send changes the dispatch logic in subtle ways. - Charlie