[PEAK] 'Categories' in Python
Andy Gross
andy at andygross.org
Fri Dec 10 19:15:01 EST 2004
On Dec 10, 2004, at 7:07 PM, Phillip J. Eby wrote:
>
> I'm having trouble seeing the benefit, versus just using generic
> functions (either single or multi-dispatch). The only difference
> between them and what you're doing as far as I can see is that the
> calling signature would be 'toUpper(someObj)' instead of
> 'someObj.toUpper()'. But apart from that that, there's not any
> difference.
>
You could be right - I've barely gotten started playing with
peak.dispatch, so I might not need this at all. The idea of categories
may be more accessible to some users, though, and the concept is a
little more limited in scope than generic functions..
/arg
More information about the PEAK
mailing list