Re:Generics enabled by default in Go tip
by buu700 on Saturday August 21, 2021 @12:21AM
(#28254153)
I personally think this will be a great thing for the quality of the language (no typed higher-order functions is a massive pain point as-is), but at the same time one could argue that this is an equally massive bait-and-switch for all the developers who prefer Go's original take on "simplicity".
[ Parent
| on HN ]
Go is still pretty “simple”. They didn’t introduce a while loop. Adding generics would arguably “simplify” the language even further since you would presumably throw away a lot of duplicated code.
> Go is still pretty “simple”. They didn’t introduce a while loop.
What are you talking about? There is already a while loop, it's just under a different name. I don't think reusing keywords for other purposes is an example of simplicity.
Re:Generics enabled by default in Go tip
by mseepgood on Saturday August 21, 2021 @01:38AM
(#28254515)
They can simplify code, but they don't simplify the language.
Re:Generics enabled by default in Go tip
by masklinn on Saturday August 21, 2021 @02:25AM
(#28254734)
The langage which already had generics except special-cased to builtins the langage authors really wanted to be generic and they know better than the peons so they have the intellectual capacity to make this determination?