💡 Idea:
Problem:
When calling a "new" Module, the new(...) functions will be called. If the Module includes Mixins, then their new(...) functions will be called as well. For some, this may not be acceptable, due to the Mixins requiring a different set of arguments.
Solution:
Introduce a new function __new(...), which will override a Mixin's new(...) call if one exists, otherwise fallback to the default new(...) function.
💡 Idea:
Problem:
When calling a "new"
Module, thenew(...)functions will be called. If theModuleincludesMixins, then theirnew(...)functions will be called as well. For some, this may not be acceptable, due to theMixinsrequiring a different set of arguments.Solution:
Introduce a new function
__new(...), which will override aMixin'snew(...)call if one exists, otherwise fallback to the defaultnew(...)function.