motif icon indicating copy to clipboard operation
motif copied to clipboard

Use annotation processing for code generation

Open johnlcox opened this issue 9 years ago • 1 comments

The code-generation branch is already beginning to add the ability to generate all of the case permutations for a given type (e.g. Tuple2 or List) so that they don't have to be handwritten. Currently this requires generating the code and then copying it into a class file.

It would be nice if there was an annotation that could be added to generator classes such that the Cases code gets generated automagically as part of the compile.

johnlcox avatar Jun 26 '15 04:06 johnlcox

You may be interested in https://github.com/derive4j/derive4j that does exactly that.

jbgi avatar Oct 18 '15 20:10 jbgi