Luis Majano Forums Notification: Post to Duck Typing

Title: RE: Duck Typing
Thread: Duck Typing
Forum: Discussions
Conference: ColdBox
User: lmajano

Sana,

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
as ColdFusion.
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.

Luis

http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=807EBBB9-123F-6116-429A418F24E6EDE1

Here is a link to Sean's presenttion:

http://corfield.org/articles/ducktyping_cfunited.pdf

Hi Luis,

Thanks alot for sending link for duck-typing presentation, now its
really make sense that CF runtime checks type of object to be process.
So certainly ColdBox will get performance improvement.

If any body have more cool resource links of duck-typing, I would like
to read them.

Thanks Luis.