4 ms·
How so?
by k__ 8y ago
How so?
- jaaames 8y agoI believe there was/is a stage 0 proposal for pattern matching in ECMAScript
- k__ 8y agoStage 1 and yes, this one simply uses destructuring. But it could use JavaScripts own types. But it couldn't use TypeScripts types.
- wtetzner 8y agoWhy would it need runtime support? It would just desugar into an if-else chain.