Typically explicit panics should only be used when an error occurs that
callers are not expected to handle. For expected errors, functions should
return an extra error return value, that callers can check.

On Thu, Jan 3, 2019 at 8:24 AM 伊藤和也 <[email protected]> wrote:

> When to use panic?
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>


-- 
R. Mark Volkmann
Object Computing, Inc.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to