ES6 Classes just ES3 sugar? Not so fast. There’s a new Error if you add properties to `this` before calling `super`—breaking good use cases
-
-
-
Replying to @jashkenas
@jashkenas@wagenet yeah. Not a fan. It should either be implicit or free-form explicit. I'd prefer the latter.1 reply 0 retweets 0 likes -
Replying to @BenLesh
@benlesh@jashkenas Would love to hear the justification for this from@wycats. Don't know enough to weigh in myself.2 replies 0 retweets 1 like -
Replying to @wagenet
@wagenet@BenLesh@jashkenas TLDR before you call super you don't actually HAVE a "this" yet1 reply 2 retweets 2 likes -
Replying to @wycats
@wycats@wagenet@jashkenas I can still get that behavior with ES5 constructor functions. Are they going away?2 replies 0 retweets 0 likes
Replying to @BenLesh
@BenLesh @wagenet @jashkenas it only applies to deriving constructors in ES6.
11:10 AM - 7 Apr 2015
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.