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