Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is more the "extends" than "class" that is controversial because it eschews other pattern like mixins.


I think extends mixin(SomeClass, AnotherClass) will work.


Sorry, forgot to add an example library: https://www.npmjs.com/package/es6-class-mixin




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: