Re:Try OCaml
by wtetzner on Friday September 07, 2018 @09:35AM
(#17934075)
Pattern matching doesn't require any kind of runtime support, and can be implemented through desugaring.
[ Parent
| on HN ]
Why would it need runtime support? It would just desugar into an if-else chain.
I believe there was/is a stage 0 proposal for pattern matching in ECMAScript