Hacker News new | ask | show | jobs
by MrDosu 3383 days ago
There is a couple of ways to do it. From storing your conditions in meaningful variables outside the conditional to pattern matching and more. If conditions aren't the only branching operators.