4 ms·
>o the code generation becomes viral, infecting each piece of code that wants to be generic. Isn't that the whole idea?
by coldtea 8y ago
>o the code generation becomes viral, infecting each piece of code that wants to be generic.
Isn't that the whole idea?
- atombender 8y agoGenerics spreading throughout your app is not a problem, it's that a specialized code-generation solution would work this way. Both apps and libraries would need the same level of support, and at the end of the day you've invented a new language that happens to transpile to Go, on which you'll want to build everything. (In fact, such a language has already been created [1].) It's the awkwardness of the split between ordinary code and transpilation that causes the issues, and the resulting interop issues and fragmentation/competition between flavours. [1] https://github.com/albrow/fo https://github.com/albrow/fo