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 <audathu...@gmail.com> wrote: > > 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 an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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.