Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Templates are the main thing in C++ that you can easily use everywhere with zero costs in compatibility.

And they certainly beat C's "equivalent", macros.



You can use macros with C++

That's what wxWidgets did since forever, and to the dismay of C++ purists, I find their code easier to read than most templates.

Not to mention it compiles much faster.


There is hardly any C feature that beats C++ one's. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: