Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traits should be implemented as proper mixins #125

Open
LPTK opened this issue Jul 22, 2022 · 0 comments
Open

Traits should be implemented as proper mixins #125

LPTK opened this issue Jul 22, 2022 · 0 comments

Comments

@LPTK
Copy link
Contributor

LPTK commented Jul 22, 2022

Internally, traits should use the standard JS mixin inheritance model, as described here:
https://justinfagnani.com/2015/12/21/real-mixins-with-javascript-classes/#bettermixinsthroughclassexpressions

(Note: TS supports the pattern to some extent but it's very incomplete and hacky: https://www.typescriptlang.org/docs/handbook/mixins.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant