Has anyone ever found a good use for ES2015 object super? eg. ({ foobar() { super.foobar(); }, __proto__: obj, }) I've never seen it used once and feels like an unnecessary addition to the language.
-
-
i was around for removing the “set home object” mechanism pre es6, but not for the rationale -
@awbjs can probably speak to it best. -
The rationale for removing “set home object”? There was concern it would be a foot gun. It’s use case was to allow user land creation of class-like abstraction mechanisms that supported `super` but didn’t require use of syntactic `class` declarations.
- 5 more replies
New conversation -
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.
he/him 