3 ms·
The '#privateVar' syntax means that classes are no longer simply syntax sugar, unfortunately.
by jwalton 7y ago
The '#privateVar' syntax means that classes are no longer simply syntax sugar, unfortunately.
- eropple 7y agoPrivate variables could always be simulated with IIFEs. I'm pretty sure that's actually how TypeScript does it if you compile down low enough.