Skip to content

Comment on Toward Go 1.3parent

Comments

The point is that an exception in Go world means: something which should not ever happen, and which renders continued execution impossible. IMO recover should only be used to wind down execution in as graceful a manner a possible prior to terminating the program.

As opposed to an error, which can and will happen.

we should rename recover to "log this before terminating the process"

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.