4 ms·
Many popular languages have templates (generics): Java, for instance.
by ktpsns 7y ago
Many popular languages have templates (generics): Java, for instance.
- idnefju 7y agoI wouldn't compare it like that. Templates are more like meta-programming. Templates can achieve what you can do with Java generics, but they can also do a lot more.
- ktpsns 7y agoI wouldn't learn C++ for the templates. Except you want to learn stuff by getting your hands dirty. The same would be to learn C for trying out pointer arithmetic and shooting into your own foots ;-)