News for hackers. Stuff that matters.
Re:Channels Are Not Enough by Pxtl on Sunday September 14, 2014 @08:45PM (#8316772)
It reminds me of the wonderful fun days of Java 1.2 - anybody remember how proud Sun was of how everything derived from object so you could use the untyped containers for everything?
Re:Channels Are Not Enough by JulianMorrison on Monday September 15, 2014 @05:44AM (#8317988)
The main difference with casting to Object is that you can use type switches or safe casts which return an additional success boolean, to restore type safety quickly after taking the item out of its container. Yes, you can type-test in Java before you type-cast, but it isn't idiomatic, and it isn't syntax.
Re:Channels Are Not Enough by frowaway001 on Monday September 15, 2014 @08:54AM (#8318471)
"It's fine in Go to do the wrong thing, because they added syntax to make it even easier to do the wrong thing."