Hacker News new | ask | show | jobs
by int_19h 2328 days ago
"where" is for match guards. Do you mean use "match" instead of "switch"? Given that the statement construct is already called "switch", it makes sense that the expression form doesn't try to use a different keyword for what is largely the same thing.
1 comments

I agree, which is why I assumed the parent was referring to `where` rather than `switch`.