News for hackers. Stuff that matters.
Re:Down the Golang Nil Rabbit Hole by spinny on Tuesday March 30, 2021 @07:14AM (#26633237)
Got bitten by this too in my early days of learning go. This was around v1.4 and until now haven't seen or had the need to pass a SomeInterface(nil) to any function or method call. To me it's more a consequence of the type system design (in most languages you can't call a method on a nil/null object) than a feature

There are no comments on this comment yet.