News for hackers. Stuff that matters.
Re:Comparing Go with Lua by dwc on Friday September 09, 2011 @11:31AM (#2978480)
Years of advancement or years of wandering aimlessly? It depends on the coders, of course. More often than not I've seen exceptions used for non-exceptional errors: normal errors best handled immediately by the code that triggered it. The use of exceptions there needlessly defers dealing with the error, passing it up the call chain to code that shouldn't know particulars.

Making both returned errors and exceptions available at least offers the opportunity to use the better tool for the circumstances. Both are very valuable and clear under different circumstances.

There are no comments on this comment yet.