News for hackers. Stuff that matters.
Re:Ask HN: How do you explain closures? by gcv on Friday November 06, 2009 @11:18AM (#926242)
Yes. This approach works. I used it when I actually did work in a proprietary language which had no usable objects, but did have half-decent lambdas. Most people did not understand or use them at all, but one new guy with a Java background asked me how to cope. I explained to him how to use closures to implement a simple bank account class, and he got it immediately.

I don't think this guy played WoW, though. :)

There are no comments on this comment yet.