Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'll add that the reason for using `struct{}` over `bool`, is that an empty struct occupies 0 bytes, whereas a boolean occupies 1.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: