News for hackers. Stuff that matters.
Re:What it's like building a real website in Node.js by svetlyak40wt on Monday February 28, 2011 @12:28PM (#2271970)
Why not to write it in a much simplier way? Like this:

  function bar(n) {
    // still has dependency on q, r, s
  }
  foo(..., bar);
Re:What it's like building a real website in Node.js by mjs on Monday February 28, 2011 @01:01PM (#2272097)
Yeah, that's nicer if bar() can be defined at the same "level" as foo() but if it makes more sense to move it somewhere else the closed-over variables need to be passed.