News for hackers. Stuff that matters.
Re:Channels Are Not Enough by NateDad on Monday September 15, 2014 @09:22AM (#8318625)
I wish people wouldn't assume there's only two options - Generics or casting from Object/interface{}/void* It's a straw man argument. No experienced Go programmers are trying to say that's a good way to write code. The idea is to restructure your code so that basic data structures and interfaces pick up the majority of your reuse scenarios.
Re:Channels Are Not Enough by mercurial on Tuesday September 16, 2014 @10:02AM (#8324488)
I'm no Go programmers, but I relatively often need to take a parametrized basic data structure as storage and write a parametrize class on top of it, while hiding the data structure because it's irrelevant.

Well, I guess I'll keep not being a Go programmer :)