Quote Originally Posted by Snaily View Post
Java has to have interfaces, in a dynamically typed language you can just check if the class has a particular method which is easy. Generally if you have a bunch of "instanceof" statements in your code base its not very good (awt isn't very good).
And having bunch of method_exists calls is better? Isn't it possible that two objects have all the same methods but you have to treat them differently?