Yeah, but in all seriousness they introduce a safer typesystem and allow for very generic and optimal code, so it's not all bad. They tend to get very ugly though if overused, as seen in some of the libraries in the boost project. And the template metaprogramming is something that takes the whole template concept to the next level.
Template metaprogramming is a whole programming language found by accident. Seriously. They built it, then realized they could use it to compute stuff. If that doesn't label it as insane, I'm not sure what will.
View all comments
Show parent comment
13
u/wegzo Apr 29 '14
Yeah, but in all seriousness they introduce a safer typesystem and allow for very generic and optimal code, so it's not all bad. They tend to get very ugly though if overused, as seen in some of the libraries in the boost project. And the template metaprogramming is something that takes the whole template concept to the next level.