var mem = { f: function (x) { return (x<2) ? 1 : mem.f(x-1)+mem.f(x-2); } };
This is not what I proposed in my last e-mail. I also showed that inlining of mem.foo() can be 100% guaranteed for our compiler using mechanisms provided by ECMAScript 5. I further gave arguments relating to documentation with JsDoc and advantages of namespace separation.
Please comment on what I proposed in the e-mail titled "Namespaces?".
- Maxime