Linked by Thom Holwerda on Tue 1st Jun 2010 15:12 UTC
General Development "I am pleased to report that the GCC Steering Committee and the FSF have approved the use of C++ in GCC itself. Of course, there's no reason for us to use C++ features just because we can. The goal is a better compiler for users, not a C++ code base for its own sake. Before we start to actually use C++, we need to determine a set of coding standards that will apply to use of C++ within GCC."
Permalink for comment 427605
To read all comments associated with this story, please click here.
Member since:

C++, and in particular the new 0x features will really open up a lot of ways to cleanup the code.

C++ 0x now has lambdas, and a std::function object that contain and pass them around, as well as functor objects or C-style function pointers.

C++ 0x now has a standard regex library.

C++ 0x adds a lot to the functional programming side (unfortunately no pattern matching, though similar contructs are easy enough to create), and functional programming has long been known for its prowess in parsing and compilers.

C++ 0x adds r-value references (move semantics) which reduce the use of intermediate temporary values a great deal (one of the main complaints against C++ performance is that temporaries were created silently in the background uneccesarily.)
C++ in general adds templates, which is certainly a better alternative to meta-programming than C-style macros.

It'll take awhile to be adopted, and they certainly shouldn't do so wontonly, but there are plenty of advantages to be had by moving to allow C++.

Honestly though, if you've not been keeping up with the new features of C++ 0x or never cared about C++ before, go check it out (wikipedia has a throurough, if shallow, treatise thats pretty well done) -- its nearly a whole new language.

Reply Score: 2