3 ms·
Given "go generate", I actually think that code generation might be better. It's a more fussy mechanism, yes - but it's also a lot more general.
by JulianMorrison 12y ago
Given "go generate", I actually think that code generation might be better. It's a more fussy mechanism, yes - but it's also a lot more general.
- masklinn 12y ago1. Any old-timer Windows developer will tell you that statically generated code still has to be understood and maintained. 2. generics are about type-safety, not codegen. Codegen can be added on top of parametric polymorphism (e.g. C++ template specialisation), but is not required by any means (C# or Rust don't do any generic-based codegen beyond reification)