3 ms·
Why is pattern matching not possible when types are removed after typescript is compiled?
by bern4444 5y ago
Why is pattern matching not possible when types are removed after typescript is compiled?
- dllthomas 5y agoThat was my first interpretation as well, and I don't think there's actually any such technological limitation. But I think what was meant is that typescript's mostly committed to not changing runtime behavior of the JS that remains when you strip the types away, and while I we might disagree with that goal or with its application in this instance, I can at least see the flow of the reasoning and label it a matter of priorities.