new python syntax: concatenation of functions
michele.simionato at poste.it
Thu Mar 11 16:25:01 CET 2004
Uwe Mayer <merkosh at hadiko.de> wrote in message news:<c2pj49$ej3$1 at news.rz.uni-karlsruhe.de>...
> I know the python community is not very receptive towards extending the
> python syntax. Nevertheless I'd like to make a suggestion and hear your pro
> and cons.
> I want so suggest a concatenation operator like in mathematics: °
> such that:
> a(b(c(d))) <=> a°b°c(d)
> Now, why do you think such an extension would be completely useless? ;)
This is not useless, but does not require new notations. Just use
callable objects instead of functions and overload "*" to denote
More information about the Python-list