News for hackers. Stuff that matters.
Re:Leaving Go by Donch on Monday April 28, 2014 @01:44PM (#7661615)
It's horrible method with a horrible signature, that I didn't test :-)

But the short variable declaration in the type switch does indeed save the casts the OP was complaining about.

Even more correct and horrible: http://play.golang.org/p/ZMQKQhuUQT

There are no comments on this comment yet.