Slashdot: News for Nerds


Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

cancel ×


C++ just needs to die (1)

russotto (537200) | more than 3 years ago | (#34831796)

Yes, DIE. And I say this as someone who makes a living programming in it. You can do anything you want in it, but nothing complex can be done both clearly and efficiently. The standard idiom for looping through a vector of integers is

std::vector my_vec;
for (std::vector::iterator iter = my_vec.begin(); iter != myvec.end(); ++iter) { ...

Ick. And I know that C++0x actually cleans up that case. There's still plenty of ugliness.

Re:C++ just needs to die (1)

toolslive (953869) | more than 3 years ago | (#34839084)

you have my vote.

Just compare
- templates in C++0x to the polymorphism available in haskell or ocaml.
- auto in C++0x to type inference in C#, ocaml, haskell, ....
- lambda's in C++0x to the real thing in functional programing languages,...

C++0x is just more pain.

Come to think of it, a simple death is not brutal enough considered the pain C++ caused me.

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account