Chapter 26A Functional Approach to Lua
by Josh Chisholm
If you write code in mainstream programming languages, you might never have heard of Lua. But I bet you’ve heard of Angry Birds, Wikipedia, or World of Warcraft. So what made their developers use Lua in those mainstream products? Perhaps it’s because Lua is lightweight, cross-platform, embeds and extends well, performs well, and has a small memory footprint and a shallow learning curve. Those are good reasons. But I’d like to believe that some developers are attracted to Lua because it supports different paradigms and includes some pretty sweet functional programming capabilities.
You probably know some JavaScript. Although Lua has quite a different heritage, it shares many design ideas ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access