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 17:26

>>16
The example is shit, though. 

Nobody should be writing or teaching Sepples using something with raw pointers a bare new[]'d buffer in it at any time in the last decade. std::vector<>, std::string and various smart-pointer classes were invented for a reason.  All of http://www.icce.rug.nl/documents/cplusplus/cplusplus07.html reeks of c1990 idiom and should be taken out round the back of the barn and put out of our misery.

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