Comment

Comment by rickreynoldssf

There are private properties in classes

class Foo { #ImPrivate = true; #meToo() { if(this.#ImPrivate) cantTouchThis(); } }

new Foo().#meToo() === BOOM

Also with using closures for "classes" takes up a whole lot more memory because new instances off all the closures are created for each instance of the class.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton