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

By this logic no language is a real language other than JavaScript, since as we've seen, you can make just about anything "simply compile down" to JavaScript.

Let me put it another way. If I were to write a separate runtime that directly executed CoffeeScript (without JS as an intermediate step), would you then be satisfied that it is in fact a real language?



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.





Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: