On 04/24/2017 11:02 AM, Sokolov Yura wrote: > I mean: panic usually means programmer error, so if it happens, then > program behaves incorrectly, and there is always a chance of serious > state corruption. So, is there reason to recover at all?
I encountered many cases of panics when using external tools/libraries which were completely "fine" to recover from. magicmime was such a package that had a few "hiccups" when used in a multi-threaded environment mostly due to the underlying libmagic. That being said, very easy and convenient to recover from, so yeah, I would say recover is a perfectly valid strategy sometimes. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.