Plenty of previous discussions on the subject. Here's an example from 2012:
https://groups.google.com/d/msg/golang-nuts/wcrZ3P1zeAk/KaR68a8rROEJ
I don't think reasoning has changed.
On Mon, Sep 3, 2018 at 10:38 PM Dat Huynh wrote:
>
> Just a question.
>
> Why does Go allow to call a method with
Just a question.
Why does Go allow to call a method with a nil pointer?
https://play.golang.org/p/xPehesnfK9b
Thanks,
Dat.
--
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 a