Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jxub
on June 22, 2017
|
parent
|
context
|
favorite
| on:
D Language accepted for inclusion in GCC
Go has this "interface" thing which lets you do duck-typing, and it's checked at run-time, as the types in Python.
int_19h
on June 22, 2017
[–]
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: