[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc. (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 12 02:54:30 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:
you can register your types with other people's generic functions, or other people's types with your generic functions,
There's still a possibility of conflict even then. Fred registers one of Mary's types with his generic function, which he feels entitled to do because he owns the function. Meanwhile, Mary registers the same type with the same function, which she feels entitled to do because she owns the type.
The problem is that nobody entirely owns the (type, function) pair, which is what's required to be unique.
-- 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 ]