A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/061285.html below:

[Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)

[Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z) [Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)Georg Brandl g.brandl at gmx.net
Fri Feb 17 23:06:12 CET 2006
Bengt Richter wrote:
> Cut to the chase: how about being able to write
> 
>     baz(bar(foo(x, y)),z)
> 
> serially as
> 
>     foo(x, y) -> bar() -> baz(z)
> 
> via the above as sugar for
> 
>     baz.__get__(bar.__get__(foo(x, y))())(z)

Reminds me of
http://dev.perl.org/perl6/doc/design/syn/S03.html#Piping_operators

Georg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4