News for hackers. Stuff that matters.
Re:Sum Types in Go by coldtea on Friday December 26, 2014 @04:53AM (#8798559)
>"interface{} is a code smell unless your function truly takes anything" seems wrong to me because I frequently find myself using interface anytime my function can take multiply typed maps or slices (as a substitute for a generic) and I don't think you can use an expression to indicate all slices of all types.

It's still a code smell -- just one that's made necessary to add for certain cases by the language (for the lack of better mechanisms).

There are no comments on this comment yet.