Intuitively the => arrow-operators point in the wrong direction, since I feel foo gets applied to x, etc... How would additional arguments to an intermediate function be handled in this syntax ? -------- Ursprüngliche Nachricht --------Von: "Daniel.Sun" <sun...@apache.org> Datum: 25.02.18 14:38 (GMT+01:00) An: d...@groovy.incubator.apache.org Betreff: [GEP] Concatenative Method Calls Hi all,
I propose to introduce Concatenative Method Calls to Groovy. It can make code more readable, for example: Currently we write method calls like: y = foo(x) z = bar(y) w = baz(z) OR w = baz(bar(foo(x))) Concatenative Method Calls(inspired by [1]): w = x => foo => bar => baz Any thoughts? Cheers, Daniel.Sun [1] https://en.m.wikipedia.org/wiki/Concatenative_programming_language -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html