News for hackers. Stuff that matters.
Re:What's so great about Go? by sheeshkebab on Friday November 06, 2020 @09:20PM (#25012817)
The problem with generics is that every programmer generalizes differently and thus there is a massive barrier/“learning curve” for anyone new picking up an arcane codebase that some clever developer cooked up.

Not saying someone can’t screw up codebases in go, but it’s just much harder to do and you usually see it right away by noticing abuse of interface{}.

Re:What's so great about Go? by steve_adams_86 on Saturday November 07, 2020 @12:23AM (#25013364)
I agree completely. I use very dumb generalizations in hopes of keeping them easy to follow. I’ve burned myself and team members with cleverness many times with good intentions. These days I’ve calmed down a little but still find generalizations handy on a regular basis. You’re absolutely right though and I see why they were left out. For a lot of people (including myself at a times) it’s probably best to prevent cleverness.