Hacker News new | ask | show | jobs
by aatd86 942 days ago
It's not optimal but one can still implement enums in userland using struct and methods returning a comparable unexported type.