Hacker News new | ask | show | jobs
by s_kanev 4520 days ago
OP here. Totally agree. TIL about RAII. That particular codebase doesn't use c++ exceptions, but still not a reason for a roll-your-own solution if something as efficient is in the standard library.
1 comments

Does it use the STL? The STL will throw. Does it use the new operator? new will throw unless you specifically tell it not to.
Ok, should've been more specific -- it doesn't catch any exceptions and lets them bring down the program and have the project maintainer check what they did wrong.