Skip to content

Instantly share code, notes, and snippets.

@drewlesueur
Created November 25, 2010 17:24
Show Gist options
  • Save drewlesueur/715667 to your computer and use it in GitHub Desktop.
Save drewlesueur/715667 to your computer and use it in GitHub Desktop.
JavaScript Wishlist

Javascript wishlist

  • 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 the this variable is like an extra parameter that is the object that has the function. The scope 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)

Experiments

try programming without any inheritance.
use proxies
Do a demo of a program without using 'this' at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment