3 ms·
Where did the traits go? The wording seems rather definite in this announcement and rather lengthy mailing discussion [1] in June this year: > We're looking fo
by vorg 13y ago
Where did the traits go? The wording seems rather definite in this announcement and rather lengthy mailing discussion [1] in June this year:
> We're looking forward to implementing an often requested feature: traits! Our existing @Mixin transformation isn't ideal as it's bug-ridden and hard to properly fix, and has the drawback that Java frameworks don't "see" the mixed-in methods -- like the recent thread related to Spring MVC showed.
So having an AST transformation that would be "static" would help in such situations.
The feature list in 2.2 is fairly sparse for a point release, and still no traits and the mixins are still buggy and unable to see mixed-in methods.
[1] http://groovy.329449.n5.nabble.com/Adding-Trait-to-Groovy-td5715831.html http://groovy.329449.n5.nabble.com/Adding-Trait-to-Groovy-td...