3 ms·
Yes, thats surprising behavior. Fortunately its fixed in 1.9. :) Spoiler alert: . . . 1.8.x produces 3 while 1.9 produces :foo
by prog 16y ago
Yes, thats surprising behavior. Fortunately its fixed in 1.9. :)
Spoiler alert:
.
.
.
1.8.x produces 3 while 1.9 produces :foo
- jluxenberg 16y agoHmm, interesting. I suspect this will break many things, but I'm happy that they have changed it.
- kemiller 16y agoThe problem is not as pervasive as you might think, though it does happen.
- lincolnq 16y agoWhy was this broken in the first place? (What abomination of semantics would cause this behaviour)?
- gnaritas 16y agoClosure variables not having their own scope and shadowing method level vars. They're simply implemented as method level vars, so not true closures.