On Sat, Mar 7, 2020 at 1:24 PM Alexander Mills
<alexander.d.mi...@gmail.com> wrote:
>
> I put the question on Quora:
> https://www.quora.com/unanswered/In-Golang-mustdo-means-it-will-panic-if-it-cannot-be-done-Is-here-a-naming-convention-for-will-always-return-error-if-it-cannot-be-done
>
> In Golang "mustdo" means it will panic() if it cannot be done. Is here a 
> naming convention for "will always return error" if it cannot be done?

Maybe I'm missing something, but isn't that the expected behavior for
any function that has a result of type error?  I don't see why we
would need a naming convention for that.

Ian

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcX06wo3j0kE%3D2j_0AC29--zkF0mjATSUdMr5LZOamEsjg%40mail.gmail.com.

Reply via email to