Y
Hacker News
new
|
ask
|
show
|
jobs
by
exch
4698 days ago
I'll add that the reason for using `struct{}` over `bool`, is that an empty struct occupies 0 bytes, whereas a boolean occupies 1.