Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eru
· 11y ago · 0 comments
How about not using numbers for Booleans?
Comments
[–]
api
11y ago
CPUs grok numbers. This would be inefficient.
[–]
eru
OP
11y ago
Oh, you can use numbers behind the scenes. Just make sure your type system hides the ugly truth.