Monday, March 06, 2006

Duck typing with dynamic proxies

Djo discusses using dynamic proxies to achive duck typing in Java. But, at the end of the day, Java is still a statically typed language. Another blogger has a counterpoint on the perils of duck typing in which he points out benefits of static typing and the problems of not coding to an interface. (He misses tool support, which can be greatly enhanced when the tool knows what type of object you're working with, such as autocompletion and on-the-fly syntax checking.)