Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oddCopper65
· 1mo ago · 0 comments
The enum-over-bool rule is the one I'd keep even solo, saved me a reversed flag in a cert validator once.
Comments
[–]
sebastianconcpt
1mo ago
This is a sub-case of the general one that is narrowing the interpretation of things. A big infinite amount of things can be true or false, only one can be a Rust variant.