As I've said in your comments section, I think this is a really good
idea. We need to get away from the old instanceof/constructor thing,
and fully embrace duck-typing. This looks a nice way of formalising
that.

On 21 March 2011 14:33, npup <[email protected]> wrote:
> Hi,
>
> I wrote a little utility to help out with checking status of objects.
> More specifically, checking their conformance with a "signature" that
> you provide along with the check.
>
> It is partly meant to help out when expecting "quacker" objects to be
> sent as parameters to your functions - you know, to see if they stand
> a chance in your pond :)
>
>
> I am interested in opinions on it all - the writing, the code
> (usefulness/implementation/etc). Here's a link to a blog post:
> http://npup.se/blog/2011/03/11/year-of-the-duck/
> , and here's the github repo with tests etc.: https://github.com/npup/ActsAs
>
> Thanks in advance
> /P
>
> --
> To view archived discussions from the original JSMentors Mailman list: 
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here: 
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]
>



-- 
Nick Morgan
http://skilldrick.co.uk
@skilldrick

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to