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

Go has this "interface" thing which lets you do duck-typing, and it's checked at run-time, as the types in Python.



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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: