Private Names and Methods
khs4473 at gmail.com
Fri Apr 6 13:10:54 PDT 2012
> It is primarily an idiomatic difference between programming in a static OO
> language and a dynamic OO language. If you do this style of lexically
> resolved decomposition in ES you actually can use your generic method on a
> different kind of object, like your original problem statement required. I
> don't believe that you can do that with your Java solution. It its still a
> type shape mismatch that is gong to have to be detected somewhere
> (presumably by the java.lang.reflect methods that would be used to transfer
> or invoke the method).
Right - I'm intentionally trying to do something that is not possible in
Java, but in a way that a Java programmer might try to do it.
> ES is clearly a dynamically typed language rather than a statically typed
> language. Whatever JS classes ought to be, they need to be based upon
> dynamic language concepts.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss