Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
f1shy
· 3mo ago · 0 comments
This is more or less the reason why bool is not recommended as a type, instead use a enums which add semantic value
Comments
[–]
QuantumNomad_
3mo ago
enum DoesUserWantToSave { Yes, No, Cancel, }
:p
[–]
layer8
3mo ago
This was well known 20+ years ago:
https://thedailywtf.com/articles/what_is_truth_0x3f_