4 ms·
The tc39 pattern matching proposal seems to have some renewed energy with new champions (including from the typescript team) and syntax proposals: https://gith
by a_humean 5y ago
The tc39 pattern matching proposal seems to have some renewed energy with new champions (including from the typescript team) and syntax proposals:
https://github.com/tc39/proposal-pattern-matching https://github.com/tc39/proposal-pattern-matching
Also there has been movement in the user land space with libraries like ts-pattern that make use of new features in typescript 4.x to provide basically the full pattern matching experience:
https://github.com/gvergnaud/ts-pattern https://github.com/gvergnaud/ts-pattern