Re:Generics enabled by default in Go tip
by mypalmike on Saturday August 21, 2021 @05:34AM
(#28255551)
With Java, I didn't find it to be either a huge win or a major loss. And I still don't. It's basically window dressing that lets you avoid casts in certain obvious places where they weren't particularly problematic anyhow.
[ Parent
| on HN ]
Re:Generics enabled by default in Go tip
by hyperman1 on Saturday August 21, 2021 @07:21AM
(#28256032)
It's more than window dressing. A year ago I added correct generics to about 50 000 lines of Java, an old module in a bigger program. The change was mostly mechanical, removing casts and adding signatures.
I found a few places where refactoring had left behind a wrong type cast. Production logs demonstrated actual crashes corresponding to these cast. There were bugs in the issue tracker, marked unresolvable.