Aaron Long
2014-04-23 17:02:06 UTC
The more I read about traits, the more I'm excited about using them into
our applications. Currently, we are using mixins to achieve some of the
same functionality, although it's a bit clunkier for some use cases.
I was wondering if there are plans to start incorporating or refactoring
any areas of grails-core to use traits? It seems like many of the behaviors
that are applied to domains, services, etc. might be better expressed as
traits that could be implemented as needed.
For work being contributed to 2.4 and beyond, is the use of Traits ok where
applicable? (obviously golden hammers aside).
-Aaron
our applications. Currently, we are using mixins to achieve some of the
same functionality, although it's a bit clunkier for some use cases.
I was wondering if there are plans to start incorporating or refactoring
any areas of grails-core to use traits? It seems like many of the behaviors
that are applied to domains, services, etc. might be better expressed as
traits that could be implemented as needed.
For work being contributed to 2.4 and beyond, is the use of Traits ok where
applicable? (obviously golden hammers aside).
-Aaron