<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
01:03 maxirater joined
01:05 joshontheweb joined
01:19 Gustavo6046 joined
02:51 Lierdakil joined
03:32 netj joined
04:28 <Sleepy_Coder> deltab: no doubt, but I just don'tunderstand why it doesn't work - javascript or even javascript with strict mode enabled doesn't forbid closures
07:13 <deltab> the difference is that without a function call, the closures share the same variable, and it's updated by the loop
07:18 <Sleepy_Coder> it's still odd to me, because you'd think when it's using the for loop the closures take the current value of 'i' - at the point where theyr'e defined
07:18 <deltab> when you call a function you create a stack frame with a separate version of the variable
07:19 <deltab> yeah, many people are caught out by that
07:21 <deltab> a simpler version: setTimeout (-> alert x), 100; x = 123
07:24 <deltab> vs. makeTimer = (x) -> setTimeout (-> alert x), 100
08:09 tvw joined
08:24 tvw joined
08:31 vlad1777d joined
11:10 BearishMushroom joined
11:58 auvipy joined
12:15 kristofferR joined
12:16 yes joined
12:16 <yes> yes
12:17 <yes> hello&|?
12:17 yes left
14:06 Gustavo6046 joined
15:34 TinkerTyper joined
15:36 Ivanov joined
17:22 sagax joined
18:10 coffeescriptbot joined
18:10 <coffeescriptbot> [coffeescript] GeoffreyBooth pushed 1 new commit to master: https://git.io/v9TG9
18:10 <coffeescriptbot> coffeescript/master ac1b2b5 Julian Rosse: Iss4248 unicode code point escapes (cleanup) (#4522)...
18:10 coffeescriptbot left
18:20 joshontheweb joined
21:50 shesek joined