Well, for one thing, the real name of the language is Go, even if the domain name is golang.

Second, I wouldn't count Go's struct pointer + func as actual oop. It's more on the lines of Go offers you just enough to keep chasing your tail to replicate your oop style you were used to.

But think of what the ‘feature’ of adding functions to structs really means. You basically provide a pointer to a structural (just not as a regular parameter). The only purpose is to enable mutability which you don't want to do in a high concurrency environment unless you really enjoy race conditions and locking stuff all the time to the point where any benefit is lost.

functional programming comes more naturally in go.


Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store