Name propagation is one area where autovivitation can be handy in JavaScript. Currently, for the "namespace" of an object, you must do this:
var foo = { bar: { baz: {} } }; foo.bar.baz.myValue = 1;
If auto-rendering is supported by JavaScript, the first line is not needed. The ability to add arbitrary properties to objects in JavaScript is explained by the fact that it is a dynamic language, but not an auto-vivification.
gilly3
source share