Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
satyr
on Dec 22, 2011
|
parent
|
context
|
favorite
| on:
The Problem with Implicit Scoping in CoffeeScript
And when do you ever want to leak local variables to an outer scope? Never.
Not to mention that loop counters are no different than other `var`iables in JS.
cheald
on Dec 22, 2011
[–]
You do want to sometimes reference outer scope variables from inner scopes, though. The only difference between a leaked local and a properly referenced global is usage semantics.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Not to mention that loop counters are no different than other `var`iables in JS.