Re:Generics enabled by default in Go tip
by pm90 on Saturday August 21, 2021 @01:19AM
(#28254438)
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.
[ Parent
| on HN ]
> 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?