Re:Fogus: Node.js should become its own language
by brlewis on Tuesday April 12, 2011 @10:35AM
(#2437360)
That isn't lack of lexical scope. It's that the for() syntax isn't purely functional in how it binds variables. One could define an equivalent syntax in Scheme and see the same result.
EDIT: http://pastebin.com/7BUXKVXT
Paste it into Racket and choose language R5RS.