News for hackers. Stuff that matters.
Re:Toward Go 2 by logn on Thursday July 13, 2017 @04:02PM (#14764671)
My guess as to why people in Java use generics so much and switched to them so quickly is the squiggly yellow lines in their IDEs. A lot of Java code is easier to read/write with explicit and implicit casting and no use of generics. And the type erasure makes for sometimes unintuitive behavior at runtime. Being familiar with Java, I appreciate Go's skepticism toward generics because maybe just maybe they'll figure out a way to add them after the fact in an elegant way.

There are no comments on this comment yet.