3 ms·
Now that you say it, and I think about it more, I guess you're right. It does add features like list comprehension and pattern matching, and the compilation rea
by michael_fine 14y ago
Now that you say it, and I think about it more, I guess you're right. It does add features like list comprehension and pattern matching, and the compilation really is ambiguous.
- asynchrony 14y agoCoffeescript 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.