|
|
|
|
|
by cyphar
3748 days ago
|
|
> It helps to remember > function a() { b(function() { //etc }) } is equivalent to > function a() { b(c) } function c() { //etc } which is not particularly more verbose. And as a side benefit, refactoring that way gives you an opportunity to make c() self-documenting. It's not always equivalent, since you can have closures. |
|
In some sense closures are globals and globals are bad.