tc39/proposal-class-public-fields
View on GitHub ↗ ★ 484 HTML archived
Stage 2 proposal for public class fields in ECMAScript
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2016-01-28 · latest 2017-11-19
20082026
-
Since I last checked it was still experimental, albeit available in Babel, but there is work on syntax for property initialisers in class bodies e.g: class X { id = (x) => x; } See here: https://github.com/jeffmo/es-class-fields-and-static-…
comment by jwdunne · 2017-11-19 · in When I use classes, when I don’t, what I do instead and why -
There are a few small things that still require conversion. But that is because Typescript also includes capabilities from ES7 (ES2016). For example - currently in Typescript but only planned for ES7: https://github.com/jeffmo/es-class-fiel…
comment by bd82 · 2016-03-16 · in JavaScript libraries should be written in TypeScript -
Coming to the spec soonish and already supported in Babel - https://github.com/jeffmo/es-class-fields-and-static-propert...
comment by phpnode · 2016-01-28 · in Preact, a fast 3k React alternative