| ▲ | hyperpape 2 days ago | ||||||||||||||||||||||||||||||||||||||||
> Object-oriented (OO) patterns get a lot of flak in the Go community, and often for good reason. This isn't really an OO pattern, as the rest of the post demonstrates. It's just a pattern that applies across most any language where you can make a distinction between an interface/typeclass or whatever, and a concrete type. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | discreteevent 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
> distinction between an interface/typeclass or whatever, and a concrete type. This is the essence of OOP. "The notion of an interface is what truly characterizes objects - not classes, not inheritance, not mutable state. Read William Cook's classic essay for a deep discussion on this." - Gilad Bracha https://blog.bracha.org/primordialsoup.html?snapshot=Amplefo... | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
| ▲ | za3faran 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
The ironic thing is that golang itself is OO. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||