J
John G Harris
The perfect pattern to build an inheritance chain: d inherits from c
that inherits from b that inherits from a:
d= object(c= object(b= object(a= {})));
Try to write that in a single line using 'new'...
Now try to create another object of the same kind.
Which is easier :
d1= object(c1= object(b1= object(a1= {})));
or
new Thing();
and which causes less pollution of the global namespace?
You also missed out the
a.init(...); b.init(...); c.init(...); d.init(...);
John