bsideup / groovy-macro-methods-proposal

Apache Groovy proposal of macro methods implementation
Apache License 2.0
9 stars 0 forks source link

Global nature #2

Open bsideup opened 8 years ago

bsideup commented 8 years ago

Macro methods inherit their global nature from Groovy extension methods. It means that if you have two macro libraries on classpath with the same method name, it will cause a race.

We could use some special syntax or conventions to work around it. For instance, use static imports: https://github.com/groovy/groovy-core/compare/master...bsideup:feature/extension_methods?diff=unified&name=feature%2Fextension_methods#diff-759d479e1d214cc727264e44227fdbb8

Rr some special syntax like using foo from com.example.MyCoolMacroMethods