[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc. (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 2 04:50:12 CEST 2007
- Previous message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Next message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip J. Eby wrote:
The PEP lists five built-in decorators, all of which support this behavior::
@overload, @when, @before, @after, @around
This seems massively over-designed. All you need is the ability to call the next method, and you can get all of these behaviours. If you call it first, then you get after behaviour; if you call it last, you get before behaviour; etc.
-- Greg
- Previous message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Next message: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]