What’s Changed Since CoffeeScript 1.0.0?

Despite being a very young language, CoffeeScript has been remarkably stable in the years since its 1.0.0 release. As of this writing, the latest release is 1.8.0. For the most part, code written for CoffeeScript 1.0.0 will be accepted by the CoffeeScript 1.8.0 compiler, and vice versa. The few exceptions mainly have to do with syntactic edge cases involving implicit parentheses and indentation. Those who like to keep their code as paren-free as possible will be happy to know that ever since CoffeeScript 1.7.0, chaining code like this has worked as expected:

 $(​'h1'​)
  .slideDown 100, => $(​'h2'​).show()
  .fadeIn 300

Personally, I prefer to use explicit parentheses in most cases, and you’ll see that ...

Get CoffeeScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.