Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's commonly called "duck-typing". And since you're discussing C#, I'll throw in that Typescript (another MS language) has duck-typing for interfaces. You can explicitly implement an interface, in which case the compiler will enforce that the interface is implemented. But you can also implicitly meet an interface.


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

Search: