Static Fields and Private Accessors
export class Point { static distance(a, b) { const dx = a.x - b.x; const dy = a.y - b.y; return Math.hypot(dx, dy); } } Classes has static field TC 39 Yup. And they use static accessor TC 39 Yup. So we can use private accessor for private fields TC 39 That makes sense to me. export class Point { private method(): void {} } Then take it. #clicked() { this.#x++; }
A cartoon character agrees with increasingly questionable JavaScript and TypeScript features, moving from static fields and accessors to private fields before abruptly taking the code back. The joke mocks the TC39 standards process and the way developers rationalize new language syntax until it becomes too much. EN: A cartoon character agrees with increasingly questionable JavaScript and TypeScript features, moving from static fields and accessors to private fields before abruptly taking the code back. The joke mocks the TC39 standards process and the way developers rationalize new language syntax until it becomes too much.
cartoon characters / мультяшные персонажиblue creature / синее существоred creature / красное существоorange triangular body / оранжевое треугольное телоblue cave / синяя пещераrocky background / каменистый фонcode block / блок кодаorange square / оранжевый квадратwhite caption box / белое поле с подписьюblack text / чёрный текстred clothing / красная одеждаpointing gesture / указывающий жест
- @profunctor_io / 2718 2019-07-24
- Type
- image
- Size
- 500×741 · 95.0 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added