I've added a compareTo method to the byte[] class using a Groovy Extension Module. However, I'd also like to add the Comparable interface to the same class, but couldn't figure out how to do it.
I'm guessing that it might be possible to achieve using AST transformations. Or perhaps there is a simpler way? Perhaps by manipulating the expando meta class?