[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua on Reddit again
- From: Paul Hudson <phudson@...>
- Date: Mon, 31 Jan 2011 13:59:30 +0000
On 31 January 2011 13:45, Alexander Gladysh <email@example.com>
Side note: You ought to use coroutines in Lua for this.
+1. Callbacks are a bodge. Closures make it slightly easier to keep the state around for your callback, but coroutines are just so much cleaner.