groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Harvey <>
Subject [VOTE] Inner-project extension methods
Date Sun, 31 Dec 2017 03:51:17 GMT
I'm starting a vote to add the ability to declare extension methods within
the same project that they are used, removing the requirement to isolate
them to a separate/external dependency. More discussion here:

One question left remaining is the syntax for declaring the extension
methods. I think the best option, at least to start out with, is to use an
annotation. For example:

public String upper(String self) { ... }

This follows existing paradigms and doesn't introduce any new syntax. The
possible downside is a hit to IDE performance because it relies on
annotations. In theory, once the ability to declare extensions within the
project exists, this can be managed much more easily, and another vote could
be had to decide the best syntax.

Please vote on adding the new feature to Apache Groovy 3.0.0 and 2.6.0

[ ] +1  The feature sounds good 
[ ]   0  I don't have a strong opinion about this, but I assume it's ok 
[ ]  -1  Because... 

PS this is the first vote I've called, hopefully I did everything right.
Thanks to Daniel for helping me out.

Sent from:

View raw message