why weren't ES6 classes designed as a sugar around functions? could have avoided all the "this." crap (methods would kind of just closure around variables declared in the body)
class MyClass(constructor_arg) {
// code in the main body is effectively the "constructor"
let privatevar = 5;
pub let ivar;
pub mymethod() {
console.log(privatevar, ivar); // can get at variables without "this"
}
}
it feels like the people working on javascript hate javascript.