|
|
|
|
|
by draegtun
4837 days ago
|
|
>Piping subresults between functions really doesn't get much better in any language Piping operations like this can also be found in OCaml, F# and Perl6. For eg. in Perl6 this is called a Feed Operator (http://perlcabal.org/syn/S03.html#Feed_operators) and your example would look like this: a ==> h ==> g ==> f;
|
|
a.h().g().f()
I feel that prefix notation is one of the greatest impediment to the uptake of Lisps. And I think it's important to underscore that you can (idiomatically) choose prefix, postfix or infix depending on the character of your problem.
If the code is (unnecessarily) hard to read, then express it differently. The language encourages it.