Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pjmlp
· 1y ago · 0 comments
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.
Comments
[–]
ender341341
1y ago
I 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
OP
1y ago
Indeed, that is the point.
[–]
CyberDildonics
1y ago
This doesn't have anything to do with what they said, they didn't say RAII was new.
[–]
pjmlp
OP
1y ago
Might 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 ago
You can try to be insulting if you want but if you could explain the connection I think you would have already.
[–]
pjmlp
OP
1y ago
I wasn't.