4 ms·
> That said, give me proper pattern matching in JS. Hard to live with languages that haven't caught up yet. I really want this. Along with switch being as expr
by nicoburns 6y ago
> That said, give me proper pattern matching in JS. Hard to live with languages that haven't caught up yet.
I really want this. Along with switch being as expression. Seems like something that JavaScript is obviously missing.
- jessaustin 6y agoI really want... switch being as expression. Unfortunately JavaScript still hasn't caught up with CoffeeScript.
- deergomoo 6y ago> Along with switch being as expression Even PHP has this now, albeit with a different keyword (match) due to existing switch semantics being pretty bad