Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hurril
on Aug 30, 2022
|
parent
|
context
|
favorite
| on:
Packed structs in Zig make bit/flag sets trivial
That's a user error because there very much is something wrong with the language. The error is that it deals in truthy and falsy rather than a strict true^false dichotomy. So 1 is just as truthy as 2 is. And -234123 for that matter.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: