dart-lang / dart-lang/language
Mixin composition
Open
request
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
_This issue was originally filed by @simonpai_
---
Currently Dart does not support direct mixin composition as mentioned in the document (http://www.dartlang.org/articles/mixins/). However if we have a way to either define M1 * M2 or just make
```
class X extends Object with A, B {
...
}
typedef Y = Object with A, B;
```
X, Y valid mixin candidates, it will come in very handy to build flexible class plugins.
Algebraically there is no loophole to define the composition operator, and the association will work perfectly.
Related issue:
http://www.dartbug.com/8127
Contributor guide
Assessment
This issue has not been assessed yet.