News for hackers. Stuff that matters.
Re:Go Replaces Interface{} with 'Any' by nightowl_games on Wednesday December 15, 2021 @08:01AM (#29565343)
I'm an experienced programmer whos just learning go now and I never made the connection that interface{} meant 'an interface with no methods'. I've always thought 'interface{}' was the clearest wart on the language. Languages shouldn't be about teaching me things, they are just a tool. Keyboard input goes in, computer instructions come out. any is easier to read, more intuitive in its meaning and takes less keyboard input.

There are no comments on this comment yet.