Tuesday, June 21, 2016

Why doesn't C++ have finally in try/catch

http://www.stroustrup.com/bs_faq2.html#finally

By the C++ creator himself. TLDR:

C++ has a way better solution scoping, and releasing the resources at the end of a scope. Also known as RAII.

No comments:

Post a Comment