John Barton (2015-06-03T13:46:19.000Z)
d at domenic.me (2015-06-08T00:05:17.829Z)
On Wed, Jun 3, 2015 at 1:27 AM, Benjamin Gruenaum <benjamingr at gmail.com> wrote: > Am I missing something obvious in `super((resolve, reject) => this)` ? > > First of all, it makes perfect sense for `this` not work work before super > has been called - and it has not been called yet. > Rather than starting off by claiming the restriction on "this" before "super()" makes perfect sense, let's be honest that lots of normal developers will be tripped up by this restriction. "this" is used a reference throughout class code: it makes "perfect sense" to use it in a constructor. Passing extended-class-specific values to super() is exactly what super() does. Thus using "this" in a constructor before calling super() is entirely natural in light of other experience with the language. Our inability to support "this" before super() is unfortunate, so let's sympathize and encourage people to understand.