Re: python interfaces
- From: Sion Arrowsmith <siona@xxxxxxxxxxxxxxxxxxxxxx>
- Date: 04 Jan 2008 17:01:28 +0000 (GMT)
hyperboreean <hyperboreean@xxxxxxxxxxxxx> wrote:
Why doesn't python provide interfaces trough its standard library?
Because they're pointless. Java interfaces are a hack around the
complexities of multiple inheritence. Python does multiple
inheritence Just Fine (give or take the subtleties of super()) so
does not need them.
Interfaces used purely with the idea of type safety provide
precious little gain for the added clutter and inconvenience.
Compare them to Java's requirement for explicit declaration of
exceptions thrown in a method signature, if you will.
--
\S -- siona@xxxxxxxxxxxxxxxxxxxxxx -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
.
- Follow-Ups:
- Re: python interfaces
- From: Bruno Desthuilliers
- Re: python interfaces
- From: r . grimm
- Re: python interfaces
- From: Peter Maas
- Re: python interfaces
- From: Peter Maas
- Re: python interfaces
- References:
- python interfaces
- From: hyperboreean
- python interfaces
- Prev by Date: Tabnanny errors when Migrating Python 2.4 code to 2.5
- Next by Date: Re: Details about pythons set implementation
- Previous by thread: Re: python interfaces
- Next by thread: Re: python interfaces
- Index(es):