3 ms·
RAII predates C++98, I was already used to it in Turbo C++ for MS-DOS, and is pity we need to keep advocating for it as something extraordinary.
by pjmlp 1y ago
RAII predates C++98, I was already used to it in Turbo C++ for MS-DOS, and is pity we need to keep advocating for it as something extraordinary.
- CyberDildonics 1y agoThis doesn't have anything to do with what they said, they didn't say RAII was new.
- pjmlp 1y agoMight be misunderstood by others not skilled in C++ when reading, > This doesn't look like RAII. How is this idiomatic for C++20?
- CyberDildonics 1y agoYou can try to be insulting if you want but if you could explain the connection I think you would have already.
- pjmlp 1y agoI wasn't.
- CyberDildonics 1y agoYou weren't what? Who are you saying "isn't skilled in C++" here and why would that matter?
- pjmlp 1y agoThose that by reading that sentence think RAII is something new in C++20.
- CyberDildonics 1y agoWhy would someone who knows what RAII and C++20 are end up thinking that?
- ender341341 1y agoI think you're partly making the point for them, RAII has been idiomatic C++ since before c++ was standardized. It wasn't even idiomatic c++98 to be missing it, so to be missing it in c++20 library definitely still isn't.
- pjmlp 1y agoIndeed, that is the point.