Wouldn't something like this:

foo(someLongCalculation("One"), someLongCalculation.curry("Two"))

def foo(Integer x, Closure<Integer> y) {}

be equivalent?



2015-05-27 15:16 GMT+02:00 Rhangaun . <[email protected]>:

> Has someone given a thought about adding someting equivalent to Swift's
> autoclosure annotation in Groovy ?
>
>
> http://www.archgrove.co.uk/weblog/2014/06/09/swift-semantics-auto-closing-over-parameters
>
>
>

Reply via email to