News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by nine_k on Sunday September 17, 2023 @04:38AM (#37542846)
Go has made many decisions that i'm not happy about.

If they did one thing exactly right on the language level, it's the [lack of] OOP: interfaces in their implementations, and no inheritance, overridden methods, covariance / contravariance games, etc.

You can of course write in Java in that style: only extend interfaces, never inherit classes. But many libraries, including the standard library, actively refuse to cooperate.

Re:Java 21 makes me like Java again by nprateem on Sunday September 17, 2023 @10:12AM (#37545259)
And yet even after writing Go for 5+ years I still have to Google for what actually implements Reader so I can read a file, etc.
Re:Java 21 makes me like Java again by aarbor989 on Sunday September 17, 2023 @04:22PM (#37548946)
Do you mean overloaded methods? You can "override" methods in Go in the sense that if you have an embedded struct you can provide your own implementation in your struct to use instead