Now that Java 8 is the minimum required runtime, could some default methods be 
added to interfaces such as org.codehaus.groovy.ast.expr.MethodCall or 
org.codehaus.groovy.ast.Variable.  For example, predicate checks like 
isStatic(), et al. could be implemented in terms of getModifiers(), would 
provide convenience to receivers of Variable instances, and would save a bunch 
of repeated overrides in implementing classes.

Can anyone think of other interfaces in core groovy that could benefit from 
default methods?

Reply via email to