News for hackers. Stuff that matters.
Re:Ask HN: Should I learn C++ in 2019? by ktpsns on Monday August 19, 2019 @06:20PM (#20742342)
Many popular languages have templates (generics): Java, for instance.
Re:Ask HN: Should I learn C++ in 2019? by idnefju on Tuesday August 20, 2019 @11:01PM (#20754249)
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.
Re:Ask HN: Should I learn C++ in 2019? by ktpsns on Wednesday August 21, 2019 @12:13PM (#20758673)
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 ;-)