Title: RE: Duck Typing
Thread: Duck Typing
This is not best practice for an application, however for a framework it
makes sense, in order to get the side effects that duck typing produces and
because checking occurs on the actual objects the framework receives and not on
the types. This is a complex topic, however there are several posts out there
that explain how duck typing can be applied and used in dynamic languages such
Sean Corfield has some great posts on this.
Just an important
note, is that this is done to get around typing plugins and events. This should
not be done as an application building standard.