4 ms·
> In the end, we need a lightweight yet properly defined and highlevel language.... Even lua would be a joy!
by stock_toaster 12y ago
> In the end, we need a lightweight yet properly defined and highlevel language....
Even lua would be a joy!
- espadrine 12y agoOut of curiosity, what would make Lua valuable to add in browsers by default? It is similarly prototype-based, has the same closure design, is dynamically typed, has an object system fairly similar to JS (with the type of arrays and hashtables both mixed), and its number system is also based on floating-point numbers… I honestly don't see how we can justify the cost of adding Lua to browsers. I see the merit of Lua-to-JS compilers (existing codebases or sheer love of the syntax), but built-in?
- trynumber9 12y agoLua 5.1 (2006) has lexical scoping, tail calls, multiple return vales with assignment lists, semicolons are actually optional & most importantly: coroutines. ES6 adds some of these features. Lua 5.3 has both integer and floating-point types.