LWN.net Logo

Moving to Python 3

Moving to Python 3

Posted Feb 15, 2011 13:05 UTC (Tue) by marcH (subscriber, #57642)
In reply to: Moving to Python 3 by nybble41
Parent article: Moving to Python 3

> Perhaps I am confused after all. I fail to see how Go can be statically typed, with, in particular, specific types for each function parameter, as well as "duck typed", where any type which provides certain methods will be accepted. If types must be known at compile-time then what would be the point of "duck typing"?

The point is: no need to design and maintain a type *hierarchy*. This point looks orthogonal to the static versus dynamic debate.

See also "Structural Typing".


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds