News for hackers. Stuff that matters.
Re:Amazing feats of Clang Error Recovery by scott_s on Tuesday April 06, 2010 @10:43AM (#1244684)
If you're doing template meta-programming in C++, those long type names are more than just a nuisance. They are a program unto themselves - a declarative program which requires similar thinking to that of Prolog. What would have helped me when I was having to provide wrappers to uBlas (http://www.boost.org/doc/libs/1_42_0/libs/numeric/ublas/doc/...) is if the compiler had formatted the type names as programs. I could only understand the error once I did that myself; otherwise, it was impossible to see.

For people not doing template meta-programming, I agree using the typedefs is better. But even if you're just using a library that makes use of template metaprogramming - such as uBlas - it could help you figure out why you're using it wrong.

There are no comments on this comment yet.