News for hackers. Stuff that matters.
Re:What Python developers need to know before migrating to Go by stevvooe on Wednesday April 24, 2013 @11:32AM (#5602021)
> map[rhubarb]bool is how Go does sets

Actually, you should use map[rhubarb]struct{} since a struct{} requires no storage. You can test membership with this:

    _, ok := m[strawberryRhubarb]

There are no comments on this comment yet.