uhop / dcl

Elegant minimalistic implementation of OOP with mixins + AOP in JavaScript for node.js and browsers.
http://www.dcljs.org/
Other
76 stars 10 forks source link

Support a direct construction of objects rather than "classes" #6

Closed uhop closed 7 years ago

uhop commented 11 years ago

In some cases instead of "classes" it is more efficient to create singleton objects directly.

uhop commented 7 years ago

It seems that advice() is doing it just fine. In more complex cases, we can always do something like that:

var a = new (dcl(...))(...);

Closing until we gather more use cases.