> For the complete documentation index, see [llms.txt](https://cpb.gitbook.io/book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cpb.gitbook.io/book/languages/lua/advantages.md).

# Advantages

Some of Lua's advantages are:

* **Linear Learning Curve**
* **Metatables**
* **Portable, can be built on any platform with ANSI C compiler**
* **Embedded and extensible language**
* **Runs well when it comes to speed**
* **Lexical scoping**
* **Functional Programming compatible with first-class functions and closures**
