3 ms·
That's interesting, but makes me wonder: how does this spec cover these cases: - select for a map with key "a" and not "b" - select for a map with key "a" and
by amelius 8y ago
That's interesting, but makes me wonder: how does this spec cover these cases:
- select for a map with key "a" and not "b"
- select for a map with key "a" and possibly "b"
- select for a map with key "a" and possibly any other key.
- bastawhiz 8y agoIt's the first step into pattern matching, so I'm not surprised that it isn't as complete as other languages' implementations. But even without further language modification, I'd bet there are some tricksy things you could do to replicate that behavior. As the saying goes, "JavaScript finds a way"