News for hackers. Stuff that matters.
Re:This is the page that made doing OOP in Javascript click ... by qwph on Thursday September 11, 2008 @02:28PM (#301615)
For some reason, nesting closures like that seems very reminiscent of how you'd implement objects in Scheme.

So I guess there's some truth to the rumour that Javascript is basically Scheme with C syntax. Either that, or I've drunk too much coffee this morning...

Re:This is the page that made doing OOP in Javascript click ... by silentbicycle on Thursday September 11, 2008 @04:34PM (#301735)
You can do exactly the same thing in Lua, too.
Re:This is the page that made doing OOP in Javascript click ... by LogicHoleFlaw on Friday September 12, 2008 @11:24AM (#302466)
Scheme with C syntax and the associative array (nee object literal) as the basic datatype. It's a powerful setup.