Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

So, C++ is starting to grow on me...

Name: Anonymous 2008-11-26 15:53

After using C++ all semester for two classes (OOP with C++, and Data Structures), I'm starting to like C++ more than C. Of course it's no Haskell or SICP, but I'm starting to wonder why I'd ever want to write in C again. I've even started re-writing a small C app I wrote to C++; although the compiled size is larger (about 44 KiB instead of 29 KiB,) the source will likely be about half the size. Best of all, because of the STL containers, I don't need to write any explicit new/delete, so my program is easier to keep leak-free.

tl;dr const references make me feel warm and fuzzy inside.

Name: Anonymous 2008-11-27 6:07

>>7
If you're writing code that has to deal with raw pointers like in that snippet then you're doing it wrong.
In the unlikely case when you need to manipulate raw pointers then that's the cost of manual memory management and you have to deal with it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List