Re: Chain: a utility function for avoiding callback hell
Posted: Mon Aug 24, 2015 4:45 am
Yeah, I think it makes sense given Lua's "small but powerful" design philosophy.ejmr wrote:Continue can be implemented in terms of goto. But the reverse isn't possible.
I've written some documentation and automated tests for Chain; everything can be found here from now on. It was surprisingly hard to document for such a small amount of code. If anyone has suggestions for improving the docs, please let me know.PIL Preface wrote: Lua is a simple and small language. It has few (but powerful) concepts. This simplicity makes Lua easy to learn and contributes for a small implementation.