35 ms·
well, i started using c++ in the late-80s, and even back then RAII (possibly not under that (bad, IMHO) name) was widely seen as an important feature of the lan
by zabzonk 3y ago
well, i started using c++ in the late-80s, and even back then RAII (possibly not under that (bad, IMHO) name) was widely seen as an important feature of the language. how else could you implement a string class (which you had to do yourself back then)?
- Merad 3y ago> how else could you implement a string class I'm not claiming that it's good C++ code (or good code by any measure) but I imagine those "C with classes" devs would do something like: my_string* s = new my_string(); s->initialize("hello world"); // ... s->destroy(); delete s;
- zabzonk 3y agowell, i have seen a lot of very bad c++ code in my time, but nothing like this.