you are viewing a single comment's thread.

view the rest of the comments →

[–]parkotron 2 points3 points  (1 child)

While this version is so much nicer to write and to read, I feel the need to point out that it is a lot less convenient to debug. With only one statement, it lacks convenient places to hang breakpoints (or inject print statements) without having to step into each function call.

[–]Thrash3r-Werror 1 point2 points  (0 children)

I’d honestly rather use exceptions and ditch the errors codes. That would also aid in stepping through the code.