3 ms·
How much do your colleagues (ab)use goto statements that Go provides? :)
by somezero 6y ago
How much do your colleagues (ab)use goto statements that Go provides? :)
- tirrex 6y agoC++ has goto, Java has “break <label>“, nobody uses it but you see a lot of generics abuse.
- saturn_vk 6y agoWhat can be classified as generics abuse in Java?
- masklinn 6y agoUsing java is abusive towards generics, they didn't deserve that?
- BobbyJo 6y agoUsing generics anywhere only a single type is ever used. The ambiguity really just hurts readability and creates a landmine for future engineers that think other types can be used willy-nilly and things will behave as they should. Especially if some optimizations get done underneath that assume or asserts some set of types, but doesn't enforce them at the API level.
- calessian 6y agoI’ve seen break label a handful of times for nested loops. Whether that was the best choice is of course always up for debate. It’s definitively possible to replace and not a necessary language feature. Maybe it’s a good thing it’s not widely known, generics are trivial to discover.
- BobbyJo 6y agoI've literally never seen them. Not even once.