Missing interfaces in Python...

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Tue Apr 18 14:38:31 EDT 2006


olsongt at verizon.net:
>If it looks like a duck, and quacks like a duck, then for all practical
>purposes it supports the 'duck' interface.

The problem with that of course, is that there's much more to being a duck
than being called 'duck'.

public interface JarFile {
    void explode();
}
public interface NuclearBomb {
    void explode();
}
http://www.beust.com/weblog/archives/000269.html

-- 
René Pijlman



More information about the Python-list mailing list