[Python-ideas] add fluent operator to everything

Rhodri James rhodri at kynesim.co.uk
Wed Feb 20 14:02:38 EST 2019


On 20/02/2019 18:24, Bruce Leban wrote:
> Here's a syntax that solves this using the new operators _:= and ,_
> 
> 
> a = [1,2,3]
> (    _:=    a    ,_    .append(4)    ,_    .sort()    )

I'm not sure what problem you are solving here, but if that's the 
solution I'd rather have the problem.  There is absolutely nothing in 
that syntax that suggests what's going on.

-- 
Rhodri James *-* Kynesim Ltd


More information about the Python-ideas mailing list