News for hackers. Stuff that matters.
Re:Generics aren't ready for Go by zeveb on Monday February 18, 2019 @09:47PM (#19196261)
It's really not the equivalent of a void pointer, because interface{} is still typed, and you can still interrogate its type, and the runtime prevents you from using it as any type other what it actually is. So it's far safer than a void pointer, although it can crash the program — but cleanly (because of the aforementioned runtime checks).

There are no comments on this comment yet.