-
Tail Recursion optimization. (Allow loops with recursion.)
-
explicit scope access. How do I add variables to the scope?
window[varname] = val
,scope[varname] = val
Similar to thethis
variable is like an extra parameter that is the object that has the function. Thescope
could represent the current scope. (has all closure variables) -
Being able to explicitly assign a function to a scope. Explicit closures.
-
Proxies, or something similar. (some sort of meta syntax) possibly http://brendaneich.com/2010/11/proxy-inception/ Maybe something like
__noSuchMethod__
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/noSuchMethod
__noSuchProperty__
(generalized getter) -
maybe some sense of real objects instead of hashes. For speed.
-
Heap vs Stack? (this is probably getting too complicated)
try programming without any inheritance.
use proxies
Do a demo of a program without using 'this' at all.