I would like to create an annotation or trait that adds methods to an object at compile time dynamically, based on existing fields. Although I'm interested in something at the class-level, I'd also work with field-level annotations (or something else more granular) as well.
An older stack-overflow question asking about the implementation details of Scala's @BeanProperty was answered with, "It's a compiler plugin, but macros may also allow you to do this". Given the official (if experimental) release of macros in Scala 2.10, is this sort of functionality now possible?