Hi Daniel, I agree with Andrew, the example to me looks less readable. Do you have another example that shows what application you had in mind ? Cheers,mg -------- Ursprüngliche Nachricht --------Von: Andrew Bayer <[email protected]> Datum: 25.02.18 15:02 (GMT+01:00) An: [email protected] Betreff: Re: [GEP] Concatenative Method Calls I actually find that less readable, and feel like it would get even worse with multiple parameters. I’m not sure I see what the value here would be. A. On Sun, Feb 25, 2018 at 8:39 AM Daniel.Sun <[email protected]> wrote: 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
