Pattern matching?

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


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

> 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:

https://web.archive.org/web/20111206195512/http://wiki.ecmascript.org/doku.php?id=strawman:pattern_matching
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170630/c0818cfd/attachment-0001.html>


More information about the es-discuss mailing list