Re: [JSMentors] Post/repo on small something to help with checking for object "conformance"

2011-03-21 Thread Nick Morgan
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 wrote: > Hi, > > I wrote a little utility to help out wi

[JSMentors] Post/repo on small something to help with checking for object "conformance"

2011-03-21 Thread npup
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,