News for hackers. Stuff that matters.
Re:Channels Are Not Enough by jrockway on Sunday September 14, 2014 @11:50PM (#8317197)
My understanding is that the Go team says they can't figure out how to make generics work nicely, that's why they haven't added them.

Also, type casts don't cause runtime panics. You can use type-based switch/case or check the "ok" return value from the cast to see if it worked.

Re:Channels Are Not Enough by frowaway001 on Monday September 15, 2014 @09:21AM (#8318617)
That's basically what Java said in 1995.

There is a reason why Java completely abandoned that position.

Re:Channels Are Not Enough by jrockway on Monday September 15, 2014 @10:29PM (#8322733)
Did Java make generics work nicely, or did they just bolt them on?