4 ms·
Or you can use Clang. Feel free to shoot C++ in the face. Don't forget to rewrite most of compilers and operating systems in use in the process.
by shin_lao 14y ago
Or you can use Clang.
Feel free to shoot C++ in the face. Don't forget to rewrite most of compilers and operating systems in use in the process.
- bhaak 14y agoLinux doesn't use C++ and AFAIK the BSDs also don't. So go ahead, I won't have a problem with a dead C++. :-)
- wolf550e 14y agoThere is much more to the OS than the kernel. Lots of important software is written in C++.
- indeyets 14y agothat's not a problem in the long-term perspective as it doesn't force anyone else to use C++
- verroq 14y agoThen prepare to drop GCC. Then drop whatever browser you are using and most of the cross platform compatible GUI frameworks (GTK, QT etc). https://lwn.net/Articles/390016/ https://lwn.net/Articles/390016/
- abrahamsen 14y agoWhat would the clang error message be?
- btn 14y agoIt's roughly the same as the improved GCC error message ("index out of range"), but with only 29 extra lines of incomprehensible compiler meandering and stdlib internals!
- danieldk 14y agoExcept 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: http://pastebin.com/H68j6E50 http://pastebin.com/H68j6E50 Cascade a bunch of errors, end you'll soon be writing a script to analyse error output ;).
- fafner 14y agoClang 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.