Javascript provides closures with first-class access to variables declared in the enclosing environment.
Should I be ashamed to admit that it is the first time in my carreer that I use this and that I find it pretty fucking elegant! I guess I was smart enough to know that it was a block/scope issue but more subtle ... I was looking for javascript anonymous block ;)
I am now seeping a glass of Penfolds at my SUP wondering how I can refactor my code to make a better use of this new awareness ;)
blog comments powered by Disqus


