groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Add default methods to some interfaces in Groovy 2.6+
Date Tue, 02 Jan 2018 23:04:22 GMT
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?

View raw message