2 ms·
> Its arguable if a code generation step is better or worse than macros. I'd rather just have generics. Code generation for protos is nice for several reasons
by twblalock 7y ago
> Its arguable if a code generation step is better or worse than macros.
I'd rather just have generics.
Code generation for protos is nice for several reasons, but using it as an alternative to generics is not nice at all. I work on a number of projects with generics in internal classes that are not exposed as an API, and using code generation just to get those to work seems like a very big hammer for a small nail.