Wednesday, October 18, 2006

Java Does Duck Typing

Duck typing is a feature of dynamic object-oriented languages that goes back to Smalltalk, although I first heard the term in the context of Ruby. Here is a very well written article about how to implement duck typing in Java. Although it's more work in Java than in Ruby or Smalltalk, it's not too bad, and could be a worthwhile technique for some cases.

No comments: