3 ms·
Maybe that has more to do with almost everything new have been garbage collected for the last decades (and that is such a tragedy) and less to do with C++. It
by tjoff 6y ago
Maybe that has more to do with almost everything new have been garbage collected for the last decades (and that is such a tragedy) and less to do with C++.
It is a low-level programming language after all. Not being explicit about memory would be a bad thing (it almost always is).
- umanwizard 6y agoI was under the impression that RAII specifically (as opposed to manually calling malloc and free by hand) was an innovation of C++, but I could be wrong.
- tjoff 6y agoDon't know, but the concept is very useful and has found its way into many languages, such as thr using statement in C#. It is just that it is typically more useful/powerful in languages that lack a GC (doesn't necessarily need to be that way though, but my impression).
- pjmlp 6y agoC# using is Common Lisp's with-....
- pjmlp 6y agoAda and Object Pascal also have it.