ES6 Classesで多重継承やmixinは構文として用意されていないので、`class`を式として扱うことで解決する実装について。 `class MyClass extends mix(MySuperClass).with(A, B) {}`

efclefcl のブックマーク 2015/12/26 13:55

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

"Real" Mixins with JavaScript Classes

    Mixins and Javascript: The Good, the Bad, and the Ugly. Mixins and JavaScript are a like the classic Clint Eastwood movie. The good is that composing objects out of small pieces of implementation i...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう