Skip to content

Instantly share code, notes, and snippets.

@dnasca
Created September 25, 2015 03:09
Show Gist options
  • Save dnasca/fdbff014e15429779ebf to your computer and use it in GitHub Desktop.
Save dnasca/fdbff014e15429779ebf to your computer and use it in GitHub Desktop.
with is bad. don't use it.
//the with statement is bad
with(o){
foo = bar;
}
//impossible to tell (in this context) what this statement will expand into
//1. o.foo = bar;
//2. o.foo = o.bar;
//3. foo = bar;
//4. foo = o.koda;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment