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

I agree absolutely: templates are only just a little less crappy than preprocessor magic. I personally never use them.


You're very wrong. C++ templates are very capable of expressing very powerful idioms. C++11 adds this to this power with variadic templates. std::function, std::tuple, etc are the future.

Please do not be offended, but if that is your attitude towards a major language feature of C++, you probably should not be writing tutorials about it.




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

Search: