Follow

A simple thing that would make Go infinitely better as a programming language would be if nil didn't satisfy any interfaces. This couldn't work:

play.golang.org/p/rMc67_p5BM4

It would remove a huge opportunity to create panics, and probably a significant amount of error handling code worrying about them.

The core problem in making this change is that errors are passed as nil for no error, when really there should be an errors.NoError that is checked instead.

Sign in to participate in the conversation
Mastodon

A server setup for the users of gould.cx to connect to the greater ActivityPub network.