News for hackers. Stuff that matters.
Re:D Language accepted for inclusion in GCC by jxub on Thursday June 22, 2017 @06:51AM (#14611298)
Go has this "interface" thing which lets you do duck-typing, and it's checked at run-time, as the types in Python.
Re:D Language accepted for inclusion in GCC by int_19h on Thursday June 22, 2017 @02:51PM (#14614402)
This is consumer-side duck typing. Python also provides producer-side duck typing - you can make any of your objects a duck dynamically, by making them behave like a duck at runtime. I'm not aware of anything similar in Go wrt interfaces.