Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Coffeescript doesn't add pattern matching.


Coffeescript has it, though it's formally called destructuring: http://jashkenas.github.com/coffee-script/#destructuring


destructuring assignment is not really pattern matching, as the latter allows flow control and the former does not.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: