|
|
|
|
|
by jerf
3505 days ago
|
|
Python has always had Go-like interfaces in practice. The problem was that they were not reified into the code, so you had no easy way to know when calling a function and passing it a "file" exactly what file-like things the function was going to do with that "file" without reading the source code. You had to extract the interface yourself. |
|
Optional types in 3.5 look awesome - but i don't want to lose duck typing. I want Go-interfaces in Python.