groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <sun...@apache.org>
Subject Re: [GEP] Concatenative Method Calls
Date Sun, 25 Feb 2018 16:13:03 GMT
Hi Guillaume,

     I have to admit closure is very versatile...

     In practice, chained closures are a bit verbose :-(

(obj1.&m1 >> obj2.&m2 >> obj3.&m3)(someParam)

     In addition, chained closures seems not to support multiple parameters.
While I propose the following syntax to support multiple parameters.

(x, y) => m1 => (m2, param) => m3

P.S.  I like Jesper proposed |> to replace =>

Cheers,
Daniel.Sun





--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message