Re:Ask HN: Should I learn C++ in 2019?
by buboard on Saturday August 17, 2019 @04:30PM
(#20726146)
There is no other language that will teach u e.g. templates. And the language is still in heavy use. What is there to lose here?
[ Parent
| on HN ]
Many popular languages have templates (generics): Java, for instance.
I 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.
I 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 ;-)