3 ms·
I'd be interested in a report from someone who tries, but I doubt it will be pleasant. By default, typos in variable names are worse than in Python and worse t
by chubot 5y ago
I'd be interested in a report from someone who tries, but I doubt it will be pleasant.
By default, typos in variable names are worse than in Python and worse than shell with set -u: they result in nil rather than an immediate exception.
The 1-based indexing is something people complain about when coming from almost any other language (Python, JS, C, C++, Go, Rust, etc.). The key issue with shell is that most people write it without studying the language.
I'm also unsure of Lua's stability guarantees. It's an embedded language that can change on every version. I know it has broken compatibility at least 4 times, because they're on Lua 5.x. You're expected to change your programs when you upgrade version of Lua, because it's an embedded language by design. It's very different than a shell.
I have heard of people using Lua for "private" shell-like tasks, but I've never seen it in a real codebase, even though Lua is very popular and well documented.
- 41b696ef1113 5y ago>I'm also unsure of Lua's stability guarantees. LuaJIT/Lua 5.1 are not going anywhere. Development is done. NeoVIM has made LuaJIT it's default scripting language and has a pretty great FAQ[0] on the topic. [0]https://github.com/neovim/neovim/wiki/FAQ#why-embed-lua-instead-of-x https://github.com/neovim/neovim/wiki/FAQ#why-embed-lua-inst...