Lua is technically superior, but JavaScript is practically superior due to its ubiquitous platform the web browser.
Similar but different to C "beating" Lisp.
Lua is technically superior, but JavaScript is practically superior due to its ubiquitous platform the web browser.
Similar but different to C "beating" Lisp.
JavaScript as it is today is a vastly more ergonomic and fluid experience, and I am saying this as someone that has written tons of both.
The embedding experience with Lua is likely much more form fit than JavaScript (sandboxing, etc). I’m strictly speaking about syntax and language features.
0-index arrays express offsets, 1-index arrays express index selection. In C (and family) arrays start at zero because they offset, `a[i]` literally means `* (a+i)` (you actually can write `i[a]`, it will work and be valid). For other language selecting 1 base indexing is not a weird option, I'd argue.