Hello,

On Sun, 24 May 2020 08:23:29 -0400
David Mertz <me...@gnosis.cx> wrote:

> Hi Steven,
> 
> On Sun, May 24, 2020, 8:14 AM Steven D'Aprano
> 
> >     sorted(paths, key=lenāˆ˜str, reverse=True)
> > *semi-wink*
> >  
> 
> Do you have an evil twin with whom you share email.
> 
> Yesterday you were arguing against functional programming style on the
> grounds that filtering based on a predicate was too obscure
> represented as 'filter(pred, ...))'
> 
> Today you want full function composition.
> 
> Fwiw, I like function composition. This example makes a good case for
> it. Too bad that symbol isn't on most keyboards. I don't think
> 'compose(len, str)' looks so terrible, but it's longer.

Could find a use for that @ operator, finally. Note to myself: should
implement that for my pycopy-dev dialect
(https://github.com/pfalcon/pycopy). Currently it allows to override
methods on (selected) builtin types, but not operators. Need to put
that on TODO.

-- 
Best regards,
 Paul                          mailto:pmis...@gmail.com
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/VGJ7DU2SACEQTWW55PG2KRYUYH62MKDY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to