4 ms·
There are some batshit crazy "solutions" offered from Go fans, like "no biggie, just use a templating engine to generate the code for the types you want and com
by coldtea 12y ago
There are some batshit crazy "solutions" offered from Go fans, like "no biggie, just use a templating engine to generate the code for the types you want and compile it".
- Peaker 12y agoI actually use that solution in c (we have some reasons to avoid c++). Of course it sucks, but at least c has the excuse of being from the 70's.
- pjmlp 12y agoThey suffer from a strange distortion field effect.
- orbifold 12y agoIronically that is the solution c++ essentially uses.
- Peaker 12y agoNot quite, given that C++ templates do higher-level type-checking than just expanding and checking. Also, they support higher-order kinds (a template parameterized by a template). And specialization (specifying special cases). And automatic instantiation based on the static types at the call site. Etc.