Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
michael_fine
on May 24, 2012
|
parent
|
context
|
favorite
| on:
Github: CoffeeScript cracks the top 10 languages
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
on May 24, 2012
[–]
Coffeescript doesn't add pattern matching.
michael_fine
on May 24, 2012
|
parent
[–]
Coffeescript has it, though it's formally called destructuring:
http://jashkenas.github.com/coffee-script/#destructuring
riffraff
on May 24, 2012
|
root
|
parent
|
next
[–]
destructuring assignment is not really pattern matching, as the latter allows flow control and the former does not.
jashkenas
on May 24, 2012
|
root
|
parent
|
prev
[–]
Ahem. That'd be "destructuring".
http://wiki.ecmascript.org/doku.php?id=harmony:destructuring
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: