Hacker News new | ask | show | jobs
by paavohtl 1625 days ago
IMHO most of the time it's better to create a special 2-case enum for your specific use case. It's 3 lines of code, which gives you significantly clearer naming than "Either" and "Left/Right".