[Python-ideas] List Revolution

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 13 01:25:12 CEST 2011

Steven D'Aprano wrote:

> I believe that Ada allows that. Any Ada users want to comment on how 
> useful or annoying this is?

I think that sort of thing works better in a statically-typed
language, because anything you pass to a library needs to be
of a data type defined by that library, or at least known to
the library, so both the library and the caller are aware
of the indexing scheme being used.

With duck-typing, on the other hand, it just seems like a
recipe for confusion.


More information about the Python-ideas mailing list