This idea is unrelated to categories. The behavior would be identical to current extension methods, except you can use them within the same project. No special importing or scoping required, just as it works currently. Hopefully that answers most of the questions you have. I don't know about how it would work with Java 9.
I am personally against an "import extension" strategy because of the difficulties it would probably introduce for IDEs. Consider you've added a String extension method, but it's not marked with anything in particular, because you can just "import extension." If you start typing the method name, it has no idea which method could be used as an extension. Basically, there has to be some indicator on the declaring method, which makes "import extension" useless IMO. -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
