new python syntax: concatenation of functions
Oren Tirosh
oren-py-l at hishome.net
Thu Mar 11 10:13:06 EST 2004
On Thu, Mar 11, 2004 at 12:38:49PM +0100, Uwe Mayer wrote:
> Hi,
>
> 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? ;)
Composition of regular functions is not too useful in daily programming
tasks but concatenation of stream processes is quite useful. That is
what makes pipes in shell programming so effective.
Oren
More information about the Python-list
mailing list