groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <>
Subject Re: Lambda vs. Closure
Date Tue, 07 Feb 2017 16:53:05 GMT

On 07.02.2017 16:44, Jesper Steen Møller wrote:
> Generating faster/tighter code for lambdas (or even closures) can be
> implemented as a separate task, the two aren't really interconnected,
> since the Groovy closure is so versatile to begin with.

The problem is that Closure has delegates, owners and several other 
things, that make no sense for lambdas in the sense of Java. In other 
words: Closure does too much and is too heavy weight

bye Jochen

View raw message