Hacker News new | ask | show | jobs
by masklinn 2983 days ago
> so make switch first class?

No. That would make the actual switch statement a value, rather than make switches expressions. And your version is completely different as you make cases into guards rather than labels or patterns.