News for hackers. Stuff that matters.
Re:Seven years of Go by weberc2 on Thursday November 10, 2016 @03:47PM (#12924177)
> The problem with interface{} is that it makes it pretty much worthless to have a type system at all.

I don't understand this argument. You need `interface{}` about 1% of the time; somehow it's better to have no type checking than only 99% type checking? Even in the 1% of cases, I've literally never seen a production bug (or even a failed test case) caused by a type error. I'm sure they happen, but I doubt they happen so frequently that adding in a generic type system would be a net gain.

Re:Seven years of Go by magnushiie on Thursday November 10, 2016 @04:44PM (#12924693)
Except the 99% (though in my experience more like 80% of the cases where generics would be considered in other languages) of the time you are refraining yourseld from using interface{} and perhaps choosing another bad solution (lesser of the evils)
Re:Seven years of Go by weberc2 on Thursday November 10, 2016 @05:07PM (#12924930)
I don't think this is true in any meaningful sense. Perhaps you're talking about map() and friends, but these are so trivial that it's just as well to write out the for loop.
Re:Seven years of Go by mseepgood on Thursday November 10, 2016 @04:04PM (#12924321)
exactly my experience