3 ms·
The OP suggests "some form of codegen" as a way of getting around the Go dev team's, shall we say ... unusual hostility toward generics. But that way lies C++
by rst 9y ago
The OP suggests "some form of codegen" as a way of getting around the Go dev team's, shall we say ... unusual hostility toward generics. But that way lies C++ templates, which were originally meant to be implemented as macro-generation -- and which lead to the messiness and complexity of C++ builds which were one of their major reasons for doing a new language in the first place.
- VHRanger 9y agoTemplates don't help C++ build times, but the root problem is that it uses the C model for compilation (several sequential passes). D compiles faster than Go usually and with templated generics all over its std lib