Y
Hacker News
new
|
ask
|
show
|
jobs
by
Dah00n
1888 days ago
Could you supply an example that an enum wouldn't do as well? How is a bool null, false, true different than an enum with null, false, true?
Edit: grammar
1 comments
samhh
1887 days ago
Logically they're the same, they're isomorphic. It's just about ergonomics, readability, etc.
link