[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
More information about the Python-Dev mailing list
Fri Feb 17 23:06:12 CET 2006
- Previous message: [Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)
- Next message: [Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)
- Next message: [Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list