3 ms·
Python has it as well.
by pjmlp 2y ago
Python has it as well.
- vips7L 2y agoAh my mistake. It’s been at least 5 years since I’ve written it. I’m honestly surprised that JS has moved no where on it considering all of the fancy things they’ve been adding.
- pjmlp 2y agoIt has been proposed, but since there is all the process on how features get added into the standard, someone needs to champion it, and then there is the "at least two implementations" factor. https://github.com/tc39/proposal-pattern-matching https://github.com/tc39/proposal-pattern-matching