Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



You can do exactly the same thing in Lua, too.


Scheme with C syntax and the associative array (nee object literal) as the basic datatype. It's a powerful setup.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: