Y
Hacker News
new
|
ask
|
show
|
jobs
by
grumpyprole
844 days ago
Using integers to model optional behaviour sucks, whatever you choose to call it. It's what one does in assembly language and C. Even Pascal from the early 70s had type-safe enumerations.