10 ms·
Maybe you could create some text macros to simplify the process, and then run a preprocessor on your program, and then.... uh oh.
by smadge 7y ago
Maybe you could create some text macros to simplify the process, and then run a preprocessor on your program, and then.... uh oh.
- jnwatson 7y agoYou joke, but source code generation is the standard way to generics in go. They even have some standard hooks for it in the build system.
- gray_-_wolf 7y agoI still consider weird that results of go generate are supposed to be committed. Since when does generated code belong to the repository :/