Are you thinking kind of like Rust's match statement? I think that something like that would be quite a good addition. Sebastian 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. Peace! Henrik "TheGrandmother" Sommerland | ||
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

