diff --git a/docs/v2/index.html b/docs/v2/index.html index bc966a00..b9f89709 100644 --- a/docs/v2/index.html +++ b/docs/v2/index.html @@ -530,7 +530,6 @@ div.CodeMirror-cursor { CoffeeScript 2 Installation @@ -813,12 +812,6 @@ cubes = (function() {

The biggest change in CoffeeScript 2 is that now the CoffeeScript compiler produces modern JavaScript syntax (ES6, or ES2015 and later). A CoffeeScript => becomes a JS =>, a CoffeeScript class becomes a JS class and so on. Major new features in CoffeeScript 2 include async functions and JSX. You can read more in the announcement.

There are very few breaking changes from CoffeeScript 1.x to 2; we hope the upgrade process is smooth for most projects.

- -
-

Why CoffeeScript When There’s ES6?

-

CoffeeScript introduced many new features to the JavaScript world, such as => and destructuring and classes. We are happy that ECMA has seen their utility and adopted them into ECMAScript.

-

CoffeeScript’s intent, however, was never to be a superset of JavaScript. One of the guiding principles of CoffeeScript has been simplicity: not just removing JavaScript’s “bad parts,” but providing an elegant, concise syntax that eschews unnecessary punctuation whenever possible, to make code easier to read and reason about. This benefit of CoffeeScript remains, even in an ES2015+ world.

-

Compatibility

diff --git a/documentation/sections/why_coffeescript.md b/documentation/sections/why_coffeescript.md deleted file mode 100644 index b5de5393..00000000 --- a/documentation/sections/why_coffeescript.md +++ /dev/null @@ -1,5 +0,0 @@ -### Why CoffeeScript When There’s ES6? - -CoffeeScript introduced many new features to the JavaScript world, such as [`=>`](#fat-arrow) and [destructuring](#destructuring) and [classes](#classes). We are happy that ECMA has seen their utility and adopted them into ECMAScript. - -CoffeeScript’s intent, however, was never to be a superset of JavaScript. One of the guiding principles of CoffeeScript has been _simplicity:_ not just removing JavaScript’s “bad parts,” but providing an elegant, concise syntax that eschews unnecessary punctuation whenever possible, to make code easier to read and reason about. This benefit of CoffeeScript remains, even in an ES2015+ world. diff --git a/documentation/site/body.html b/documentation/site/body.html index c95c66c8..c5295937 100644 --- a/documentation/site/body.html +++ b/documentation/site/body.html @@ -20,9 +20,6 @@
<%= htmlFor('whats_new_in_coffeescript_2') %>
-
- <%= htmlFor('why_coffeescript') %> -
<%= htmlFor('compatibility') %>
diff --git a/documentation/site/sidebar.html b/documentation/site/sidebar.html index 3d8c3f61..4ce596f0 100644 --- a/documentation/site/sidebar.html +++ b/documentation/site/sidebar.html @@ -5,7 +5,6 @@ CoffeeScript 2 Installation