Hacker News new | ask | show | jobs
by tomtheelder 680 days ago
It’s only an acceptable workaround in the case of two conditions, but you’re still out of luck if you have >2 branches and no match expression.
1 comments

You can technically do some craziness with nested ternary operators but they look awful and if you write them you will regret it later.
True, but I would have to categorize that as an unacceptable workaround haha