Re:JavaScript Pattern Matching Proposal
by masklinn on Wednesday April 25, 2018 @12:55PM
(#16923498)
> 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.
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.