in reply to "When closures capture their context" and "scope gotchas in Javascript"
This kind of scoping is why I swore off PHP too. I wrote quite a bit of code thinking I'd figure out how scoping rules worked later (I figured there must be a my I hadn't found out about yet). It turned out, though, that there were only three scopes: global, file, and function. I was horrified. It's been over a year, and I still cringe a little inside as I think about it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "When closures capture their context" and "scope gotchas in Javascript"
by moritz (Cardinal) on Feb 08, 2008 at 16:57 UTC | |
by dragonchild (Archbishop) on Feb 09, 2008 at 02:12 UTC | |
by Joost (Canon) on Feb 09, 2008 at 15:29 UTC | |
by dragonchild (Archbishop) on Feb 10, 2008 at 06:24 UTC | |
by Porculus (Hermit) on Feb 10, 2008 at 14:31 UTC | |
by Errto (Vicar) on Feb 08, 2008 at 18:49 UTC |