6 ms·
Coffeescript doesn't add pattern matching.
by asynchrony 14y ago
Coffeescript doesn't add pattern matching.
- michael_fine 14y agoCoffeescript has it, though it's formally called destructuring: http://jashkenas.github.com/coffee-script/#destructuring http://jashkenas.github.com/coffee-script/#destructuring
- jashkenas 14y agoAhem. That'd be "destructuring". http://wiki.ecmascript.org/doku.php?id=harmony:destructuring http://wiki.ecmascript.org/doku.php?id=harmony:destructuring
- riffraff 14y agodestructuring assignment is not really pattern matching, as the latter allows flow control and the former does not.