[Python-3000] duck typing

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sun May 7 19:50:14 CEST 2006


Alex Martelli <aleaxit at gmail.com> writes:

> Java's typechecking IS enforced at runtime just about each and every  
> time you cast something (I'm told the need for casting has diminished  
> with Java 1.5's generics, but I have no experience of 1.5; earlier,  
> casts abounded each time you used containers, since they contained  
> Object instances).

The same casts as before are still performed at runtime, even if the
genericized source would appear to not imply them.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Python-3000 mailing list