News for hackers. Stuff that matters.
Re:Introduction to Golang by catnaroek on Monday August 19, 2013 @12:54PM (#6238221)
> "The types of your nodes probably don't have much to do with any algorithms you may be writing."

Which is precisely why he wants generic types.

> "Consider your algorithms as functions which act on an interface."

How would he write a function that explicitly expects a graph whose nodes contain ints, and not, say, strings? What kind of interface would that function act upon?

> "you still only have to type-cast/type-switch on getters and callbacks."

The whole point is not having to do that.

There are no comments on this comment yet.