Y
Hacker News
new
|
ask
|
show
|
jobs
by
scarboy
4759 days ago
You should be using map[T]struct{} for sets instead of bool. struct{}s use 0 bytes and there will be no confusion as to what the value is for.