Hi list FYI: This turned into a discussion of the feature itself, on the GitHub commit thread. Basically, I'm proposing changing what "obj(params...)" means: - Non-SAM types: obj(params...) becomes obj.call(params...) - SAM types: obj(params...) becomes obj.<sam-method>(params...) - perhaps only as a fallback if obj.call doesn't exist.
This should be completely independent of how the lambda object itself was created. I realize this is a potentially breaking change, but isn't it also a nice one? Thoughts? -Jesper > On 31 Jan 2018, at 03.16, Daniel Sun <realblue...@hotmail.com> wrote: > > Hi Jesper, > > I think your suggestion is very nice and I've completed callable native > lambda according to option 2 :-) > > Here is the related commit: > https://github.com/apache/groovy/commit/c24c0b7e6a67dcdf277207d4261cfa6f2b55031f > > Cheers, > Daniel.Sun > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html