Created
September 25, 2015 03:09
-
-
Save dnasca/fdbff014e15429779ebf to your computer and use it in GitHub Desktop.
with is bad. don't use it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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