News for hackers. Stuff that matters.
Re:Chrome Is The New C Runtime by nly on Friday January 17, 2014 @10:42PM (#7079960)
Avoiding exceptions isn't the worst practice. You still get automatic resource cleanup with RAII when you return from a function with an error code, which is a big win over completely unmanaged C.

I generally agree though, error paths are the last area I want to expose myself to flaky manual propagation and the 'well, I think I handled/freed everything' discipline. The regimental 'goto cleanup' type code you see in the kernel is not something I want in my projects.

There are no comments on this comment yet.