Re: re-using a comparison closure

2016-05-16 Thread Sergei Egorov
Make it static, i.e. append "static" before "def" On Mon, May 16, 2016 at 6:57 PM Guy Matz wrote: > Thanks! Not working, though. Getting: > No such property: compareVersions for class: Sorters > > with: > > class Sorters { > def compareVersions = { afile, bfile -> >

Macro methods proposal

2016-09-23 Thread Sergei Egorov
Hey, everyone. It's been awhile since last time I participated in Groovy. I was mostly in read-only mode for the last two years. With this move, I hope to change it. I created a proposal for macro methods (no ETA, initially aimed to 3.0) because I think they are great for the future of Groovy

Re: Macro methods proposal

2016-09-23 Thread Sergei Egorov
but in Groovy > would apply the macro transformations. > > > > Jason > > > > *From:* Sergei Egorov [mailto:bsid...@gmail.com] > *Sent:* Friday, September 23, 2016 5:58 AM > *To:* d...@groovy.apache.org; users@groovy.apache.org > *Subject:* Macro methods

Re: Welcome to our new committer : Sergei Egorov

2016-12-10 Thread Sergei Egorov
://github.com/bsideup/groovy-macro-methods-proposal I'm looking forward to being an active committer! Thanks, Sergei Egorov On Sat, Dec 10, 2016 at 11:08 AM Cédric Champeau <cchamp...@apache.org> wrote: > Hi folks, > > I'd like to introduce you to Sergei Egorov, our new Apache Groovy &g

Re: Macro methods proposal

2016-12-01 Thread Sergei Egorov
23, 2016 at 4:54 PM Sergei Egorov <bsid...@gmail.com> wrote: > Unfortunately, it will not work for 100% cases. > > I.e. macro method accepts ConstantExpression. You can't a method in Groovy > with such constraints. > > Plus, such signature doesn't make sense for IDEs as well,