3 ms·
Well, Java has generics, but you still can't do this same thing: http://stackoverflow.com/questions/1115230/casting-object-array-to-integer-array-error http://s
by zellyn 10y ago
Well, Java has generics, but you still can't do this same thing: http://stackoverflow.com/questions/1115230/casting-object-array-to-integer-array-error http://stackoverflow.com/questions/1115230/casting-object-ar...
I agree that having generics in Go would be fantastic, and I'm excited at rsc's articulation of why. But they don't completely solve this problem.
- camus2 10y agoBut with Java the point is that you'd approach the issue differently without being overly verbose just like Go. I mean my example is clear. You wouldn't have to cast anything provided you use generics at first place.