News for hackers. Stuff that matters.
Re:Idiomatic Generics in Go by wyager on Tuesday September 30, 2014 @01:52PM (#8389759)
That's fair. I don't know how SML deals with this, but Haskell handles it with type classes and (in your UI example) existential data types.

You don't know everything about the children's types, but you know enough to constrain them into being type safe.

People sometimes do this safely in Go, but all too often they use interface{}.

There are no comments on this comment yet.