News for hackers. Stuff that matters.
Re:Rust for C++ Programmers Part 7: Data Types by teacup50 on Saturday May 24, 2014 @02:50AM (#7792790)
That doesn't make any sense. Defensive coding means not silently discarding errors (by returning null, in this case), and has nothing at all to do with exceptions.

As for rewrapping errors, yes, each subsystem should have its own error space. You don't lose data by nesting errors; on the contrary, each level can add additional context to an error result that makes debugging an unexpected issue far easier.

There are no comments on this comment yet.