>Where this technique is useful is cases where the method being called is impossible to know until runtime, such as in Ruby or Groovy. Scala, like Java, is not like this and the compiler can be guaranteed to have enough information to generate the right bytecode for the call inline.
What about polymorphic method calls? Statically typed or not, which method implementation to invoke is impossible to know until runtime.
http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented...