groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <sun...@apache.org>
Subject [GEP] Concatenative Method Calls
Date Sun, 25 Feb 2018 13:38:54 GMT
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

Mime
View raw message