Re:GCC 4.8 Has Automatic Return Type Deduction
by danieldk on Monday December 10, 2012 @07:23AM
(#4898701)
Except that clang++ is only marginally better. E.g. trying to copy a std::copy a string vector in a size_t vector will give you this beauty:
Cascade a bunch of errors, end you'll soon be writing a script to analyse error output ;).
Re:GCC 4.8 Has Automatic Return Type Deduction
by fafner on Monday December 10, 2012 @09:08AM
(#4899014)
Clang is not the solution. Yes it has some better error messages. Although GCC is quickly catching up.
But it can't solve the core problem. It's simply the language. The lack of Concepts (or something similar) means that error messages simply refer to implementation internals of the Template you are using. Easily giving you a long cascade of error messages when it's in some Template that is used by the Template.
All of the sudden you have to look at implementation details of your standard library or something even worse such as boost. Just to figure out what the mistake was.
And there is nothing Clang or GCC can do about it.
Re:GCC 4.8 Has Automatic Return Type Deduction
by bhaak on Monday December 10, 2012 @07:09AM
(#4898659)
Linux doesn't use C++ and AFAIK the BSDs also don't.
So go ahead, I won't have a problem with a dead C++. :-)
Re:GCC 4.8 Has Automatic Return Type Deduction
by verroq on Monday December 10, 2012 @08:23AM
(#4898846)
Then prepare to drop GCC. Then drop whatever browser you are using and most of the cross platform compatible GUI frameworks (GTK, QT etc).
Re:GCC 4.8 Has Automatic Return Type Deduction
by bratsche on Monday December 10, 2012 @09:38AM
(#4899139)
GTK is written in C, not C++.
Re:GCC 4.8 Has Automatic Return Type Deduction
by verroq on Monday December 10, 2012 @02:52PM
(#4901173)
Sorry was thinking of something else.
Re:GCC 4.8 Has Automatic Return Type Deduction
by wolf550e on Monday December 10, 2012 @08:18AM
(#4898830)
There is much more to the OS than the kernel. Lots of important software is written in C++.
Re:GCC 4.8 Has Automatic Return Type Deduction
by indeyets on Monday December 10, 2012 @08:22AM
(#4898844)
that's not a problem in the long-term perspective as it doesn't force anyone else to use C++
Re:GCC 4.8 Has Automatic Return Type Deduction
by abrahamsen on Monday December 10, 2012 @07:16AM
(#4898675)
What would the clang error message be?
Feel free to shoot C++ in the face. Don't forget to rewrite most of compilers and operating systems in use in the process.