Pattern matching?

Andreas Rossberg rossberg at
Fri Jun 30 16:06:26 UTC 2017

On 30 June 2017 at 15:55, Henrik Sommerland <henrik.sommerland at>

> Why is there no support for pattern matching in JavaScript?
> I would guess that it has been proposed before, and if so why hasn't it
> been included?
> I have been thinking about it and I think it would integrate nicely into
> JavaScript.
> If it hasn't been proposed already I would propose it, and I would gladly
> look into it more and try to examine what kind of semantics would be
> suitable.

Long ago there was a proposal:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list