Hacker News new | past | comments | ask | show | jobs | submit login

Yeah, I'd kill for Duck Typing in C#.



IronPython is duck typed and runs on the DLR. The same should be possible for a future C#...


I never knew what duck typing referred to. Thanks.


(possibly redundant)

It's based upon the phrase: if it looks like a duck and quacks like a duck, it's a duck.

In this case, if the object has the methods of the duck interface, treat it like a duck object.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: