News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by randyrand on Friday February 19, 2021 @12:38PM (#26195596)
i’ve use Java C++ and Objective-C and by far the best approach to errors has been Objective-C’s NSError* out parameters.

They're strings. They’re chain-able. They’re visible. They’re hard to ignore. They don’t propagate or crash unless you want them to.

There are no comments on this comment yet.