jashkenas/coffeescript
GitHub で見るGrammar, Nodes: Class fields/class property initializers
Open
#4,552 opened on 2017年5月16日
enhancementhelp wanted
説明
We should be able to write the equivalent of
class C {
b = 3;
c = () => 4;
}
Can it be
class C
b: 3
c: () => 4;
or does the b property have different semantics?