Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 19, 2018. It is now read-only.
/discussPublic archive

Commit7855eb1

Browse files
committed
Update features
1 parent601e411 commit7855eb1

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

‎Features.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,39 @@ These features affect interopability and should take priority over all other fea
1414
1515
[This has been merged](https://github.com/jashkenas/coffeescript/pull/4300) and released as part of CoffeeScript 1.11.
1616

17-
###Classes[(#22)](https://github.com/coffeescript6/discuss/issues/22)
17+
###Classes: Extend ES Classes[(#22)](https://github.com/coffeescript6/discuss/issues/22)
1818

1919
>CoffeeScript 2 only
2020
21-
As part of CoffeeScript 2, we willrevise CoffeeScript’s`class`syntaxtobe compatible with ECMAScript’s`class`; this means no codein classbodies, no using`this` in a constructor before calling`super`,etc. We try to keep as many features of the CoffeeScript`class` as possible while still ouputtingtheECMAScript`class` keyword, so that we can extend ES classes and create extendable native classes. Getters and setters[(#17)](https://github.com/coffeescript6/discuss/issues/17) would probably be implemented as part of supporting ES classes. This is in progress at[jashkenas/coffeescript#4354](https://github.com/jashkenas/coffeescript/pull/4354).
21+
As part of CoffeeScript 2, we willupdate CoffeeScript’s`class` tooutput an ES`class` keyword, so that ES2015 classes can be extended and so that CoffeeScript classes can be extendedinES. We will also revise CoffeeScript’sclassoutput to handle`this` in a constructor before calling`super`,and any other changes we need to make to adhere to ES syntax. This isthe“must-do” part of classes; improving the output by making it more idiomatic (not using`prototype` or`__super__`, etc.) is a separate item under Medium Priority below. This is in progress at[jashkenas/coffeescript#4354](https://github.com/jashkenas/coffeescript/pull/4354).
2222

23-
###Tagged template literals[(#28)](https://github.com/coffeescript6/discuss/issues/28)
23+
###~~Tagged template literals[(#28)](https://github.com/coffeescript6/discuss/issues/28)~~
2424

2525
>CoffeeScript 1.x and 2
2626
27-
Some new libraries require support for ECMAScript template literals, which are incompatible with CoffeeScript’s backticks. Support would be added for`myTag"hello #{'wo'+'rld'}"` or`myTag"""some multiline string"""`. Such syntax is currently not allowed in CoffeeScript, so enabling support for it would not be a breaking change.Thisis in progress at[jashkenas/coffeescript#4352](https://github.com/jashkenas/coffeescript/pull/4352).
27+
[Thishas been merged](https://github.com/jashkenas/coffeescript/pull/4352) and released as part of CoffeeScript 1.12.
2828

2929
##Medium Priority
3030

3131
These features aren’t required for CoffeeScript to be used in any project, but there’s great desire in the community for these to be added.
3232

33+
###Classes: Idiomatic ES Output[(#22)](https://github.com/coffeescript6/discuss/issues/22)
34+
35+
>CoffeeScript 2 only
36+
37+
Building off of the essential class-related items in Top Priority, this item is for the nonessential items like removing our dependence on`prototype` and`__super__`, and generally cleaning up our output and making it more idiomatic. This is where we would also add support for getters and setters[(#17)](https://github.com/coffeescript6/discuss/issues/17) and the`static` keyword. This is in progress at[jashkenas/coffeescript#4354](https://github.com/jashkenas/coffeescript/pull/4354).
38+
3339
###~~`async`/`await`[(#10)](https://github.com/coffeescript6/discuss/issues/10)~~
3440

3541
>CoffeeScript 2
3642
3743
[This has been merged](https://github.com/jashkenas/coffeescript/pull/3757) into the`2` branch.
3844

39-
###Backticked blocks[(#42)](https://github.com/coffeescript6/discuss/issues/42)
45+
###~~Backticked blocks[(#42)](https://github.com/coffeescript6/discuss/issues/42)~~
4046

4147
>CoffeeScript 1.x and 2
4248
43-
Like triple quotes`"""` or`'''`, triple backticks```` ``````` would delineate a block of passthrough JavaScript code. This would enable template literals to work within backticked blocks,andalso provide a way to passthrough JavaScript code that might itself contain backticks (suchasin Markdown comments, or in ES2015 template literals).
49+
[This has been merged](https://github.com/jashkenas/coffeescript/pull/4357)andreleasedaspart of CoffeeScript 1.12.
4450

4551
##Low Priority
4652

@@ -50,7 +56,7 @@ These are nice-to-have features that should be implemented as time permits, prob
5056

5157
>CoffeeScript 2 only
5258
53-
Output CoffeeScript’s interpolated strings—`"hello, #{name}!"`—as ES2015 template literals:`` `hello, ${name}!```
59+
Output CoffeeScript’s interpolated strings—`"hello, #{name}!"`—as ES2015 template literals:`` `hello, ${name}!``` This is in progress at[jashkenas/coffeescript#4365](https://github.com/jashkenas/coffeescript/pull/4365)
5460

5561
###~~Fat arrows`=>` output as`=>`[(#8)](https://github.com/coffeescript6/discuss/issues/8)~~
5662

@@ -62,11 +68,11 @@ Output CoffeeScript’s interpolated strings—`"hello, #{name}!"`—as ES2015 t
6268

6369
>CoffeeScript 2 only
6470
65-
###`for … of`[(#11)](https://github.com/coffeescript6/discuss/issues/11)
71+
###~~`for … of`[(#11)](https://github.com/coffeescript6/discuss/issues/11)~~
6672

67-
>CoffeeScript2 only
73+
>CoffeeScript1.x and 2
6874
69-
[This isalmost complete.](https://github.com/jashkenas/coffeescript/pull/4306)
75+
[This ishas been merged](https://github.com/jashkenas/coffeescript/pull/4306) and released as part of CoffeeScript 1.12.
7076

7177
##Uncertain
7278

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp