Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2016 (2)
20082026
  1. 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-…
  2. 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…
  3. 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