Re:Admitting that Functional Programming Can Be Awkward
by joeyo on Tuesday June 16, 2009 @01:09PM
(#660514)
Sure; there's no silver bullet. My remark about closures was more to address his criticism that packaging up and passing around state was too much work to be worth it.
Programming in Lua has a nice example of a maze game where state is passed around by emitting functions. It's a toy problem, but I think it's instructive: http://www.lua.org/pil/6.3.html
Programming in Lua has a nice example of a maze game where state is passed around by emitting functions. It's a toy problem, but I think it's instructive: http://www.lua.org/pil/6.3.html