News for hackers. Stuff that matters.
Re:Go 1.16 Release Notes by naikrovek on Tuesday February 16, 2021 @08:31PM (#26161485)
Don't. OOP was/is a mistake.
Re:Go 1.16 Release Notes by gher-shyu3i on Tuesday February 16, 2021 @11:06PM (#26162552)
Golang is OOP, regardless of what some people may claim. It's just missing inheritance, which golang's implementation of composition mimics it close enough.
Re:Go 1.16 Release Notes by grey-area on Wednesday February 17, 2021 @01:40AM (#26163426)
Composition is not a substitute for inheritance and is used an order of magnitude less in Go code than inheritance in other languages, which touches everything.
Re:Go 1.16 Release Notes by pjmlp on Wednesday February 17, 2021 @02:07AM (#26163569)
It is close enough when coupled with delegation.

That is how component based programming works.

Re:Go 1.16 Release Notes by grey-area on Wednesday February 17, 2021 @08:23AM (#26165992)
The important point is it is used far less - inheritance is impossible to get away from in most OOP programs, but you can't say the same for embedding in Go programs, it is used, but not as often.
Re:Go 1.16 Release Notes by pjmlp on Wednesday February 17, 2021 @09:42AM (#26166770)
It is only impossible because you cannot throw away standard libraries.

COM/UWP have proven you don't need to have it available.

They get lots of hate due to their underlying complexity, however they are the main Windows APIs since Vista, as COM took over the Longhorn vision.