Re:Generics enabled by default in Go tip
by jshen on Saturday August 21, 2021 @12:54AM
(#28254318)
Can you give an example of terrible unreadable go code due to a lack of generics? I’ve grown to love go because it’s one of the few languages where I can jump into a new code base and relatively easily understand what is going on.
[ Parent
| on HN ]
Because you will already have seen that precise piece of code in a thousand other contexts?
Re:Generics enabled by default in Go tip
by dmitriid on Saturday August 21, 2021 @04:11AM
(#28255159)
> Can you give an example of terrible unreadable go code due to a lack of generic
https://news.ycombinator.com/item?id=28254411
The "solution" to this is copy-pasted boilerplate code with casting for every call.