Slashdot Mirror


Biggest Changes In C++11 (and Why You Should Care)

Esther Schindler writes "It's been 13 years since the first iteration of the C++ language. Danny Kalev, a former member of the C++ standards committee, explains how the programming language has been improved and how it can help you write better code."

10 of 385 comments (clear)

  1. 13 years? by Meneth · · Score: 4, Informative
    C++ has been around for at least 28 years. From Wikipedia: "It was renamed C++ in 1983."

    The article is probably referring to the first finished C++ ISO standard, 14882:1998. Hardly the "first iteration" of the language.

  2. Cruft removed? by kikito · · Score: 4, Insightful

    I really like that they added new stuff to the language but ...

    Have they *removed* anything at all from it? That's the only way I could get interested in that language again.

  3. But... by DeathToBill · · Score: 5, Insightful

    This is news for nerds. Stuff that matters. I thought /. abandoned this stuff ages ago...

    --
    Slashdot - News for Nerds, Stuff that Matters, in ISO-8859-1 Has just realised that beta makes this signature redundant
  4. Biggest Change? by hal2814 · · Score: 4, Funny

    C++ goes all the way to 11. It's one louder than other languages.

  5. Re:13 years? by vidnet · · Score: 4, Funny

    What struck me was that C++ got lambda expressions before Java did!

  6. Re:Nice but... by mmcuh · · Score: 5, Informative

    GCC, which is probably the most used C++ compiler, supports the new for-syntax since 4.6, deleted member functions since 4.4, and explicit virtual overrides in the 4.7 development series.

  7. Re:Nice but... by DrXym · · Score: 4, Insightful

    Templates are fine for little classes but they got so abused by STL that it was not uncommon to see trivial syntax errors turn into enormous cryptic compiler errors spanning multiple lines of nested templates and typedefs, half of whom you'd never heard of. After poring over this enormous error for minutes or longer you might eventually discover you missed a * off some declaration.

  8. Re:Still playing catch-up to C#. by rennerik · · Score: 5, Interesting

    Your comment caught some flack, but I couldn't help but make a similar observation as I read the spec. It seems that they are adding a lot of stuff to C++ that exists in C# (lambda expressions, delegated constructors, automatic deduction, initialization syntax, a dedicated null keyword, etc).

    Of course, they added a bunch of stuff that's also NOT in C# (since it's not necessary in a high-level language like C#), but I am glad that they are revamping C++ to incorporate some higher-level functions. Now we just have to wait for compilers to start adopting the new spec...

  9. Re:Still playing catch-up to C#. by Waffle+Iron · · Score: 4, Insightful

    The saddest part about this whole C++0x ordeal is that they're still just playing catch-up to C#.

    True. In particular, C++ is light years behind C# in patent FUD. And C++ hasn't even started work on requirements for a 100MB "managed environment" for users to install before running their apps. Nor have C++ developers chosen a monkey species after which to name its 2nd-class-citizen cross-platform implementation.

  10. Re:13 years? by siride · · Score: 4, Insightful

    I have to lol at the "constant win api changes" statement. The Win API bends over backwards for backwards compatibility. In Unix, especially Linux, outside of POSIX (which is fairly limited in functionality), backwards compatibility is almost a 4 letter word.