News for hackers. Stuff that matters.
Re:A concise guide to the latest Go generics draft design by tarkin2 on Thursday June 18, 2020 @11:35AM (#23564040)
I’m ignorant to golang’s generics saga, but I’m painfully familiar with Java’s (to the point where I wasn’t overly sad when golang didn’t have them). Can anyone explain what golang is doing better?
Re:A concise guide to the latest Go generics draft design by cle on Thursday June 18, 2020 @12:15PM (#23564537)
Go is designing generics around the language tenets, which are quite different from Java's. In themselves, generics aren't particularly interesting...it gets interesting when you start considering the tradeoffs you need to make in order to align them with the tenets of your language, runtime, and ecosystem. I wouldn't say Go is doing generics "better", they are doing them "differently" to align with the goals of the language.

(Personally, I'm not looking forward to generics in Go, I enjoy the simplicity of not having them and haven't encountered situations where they'd make a huge difference.)

Re:A concise guide to the latest Go generics draft design by hu3 on Thursday June 18, 2020 @12:06PM (#23564423)
They're different languages with different goals. Such comparison wouldn't be constructive nor conclusive.