Comment on Improving EcmaScript5 OO with sugarparentComments−RaynosOP14yYou need all three I'm afraid.We need an easy way to mixin/extend objects. var obj = protoObj <| mixin({ ... properties ... }, mixinA); We also need a solid way to create instances. object.create(obj); obj.constructor(); is just too verbose. There is some talk around making `new` work with object exemplars which would be great.
Comments
You need all three I'm afraid.
We need an easy way to mixin/extend objects.
We also need a solid way to create instances. is just too verbose. There is some talk around making `new` work with object exemplars which would be great.