2 ms·
"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
by int_19h 7y 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.
- zenexer 7y agoI agree, which is why I assumed the parent was referring to `where` rather than `switch`.