C++ Scandal?!

B

belvis

Diego said:
but a try/catch/finally in C++ would be fine :)

it is good to have more options. we can only emulate try/finally with
RAII. this leads to many boring local classes

Try/finally leads to errors. I'd rather be bored than wrong.

Bob
 
P

peter koch

Diego Martins skrev:
but a try/catch/finally in C++ would be fine :)

it is good to have more options. we can only emulate try/finally with
RAII. this leads to many boring local classes

I disagree. I have never had a need for finally and fear that it will
create plenty of misuse should it be introduced. Scope_guard is fine on
the rare occasions where you need something more involved.

/Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top