by Jenk · 3y ago · 0 comments
As for Lua I think it is rather chicken:egg. Lua is popular because it is used by mod APIs, or is Lua use by mod APIs because it is popular?
My own experience is the former. I think it is a horrible language (in that I argue many others are better) and especially difficult for new-to-programming gamers with great ideas to pick up. Haskell or Erlang (or Java or C#) with type-safe APIs would be much more educational for them, and provide better support IMO.
when i eventually got exposed to python (but more heavily C/C++, and even some lisp/pascal) and came back to lua, i was grateful lua did not inundate me with parens/primitives/modules/data-structures/grammars, and found the flexibility of the interpreter and also what lua tables present as a unified primitive for multiple container types to be so nice and accessible for getting right to flow-state.
i did not have to look up another API and read about a set of semantics provided with a desired module, i just needed to know 1. what i want to achieve and 2. a single API: the lua table
its small std library is performant and easy on the cognitive load, and then it plays so nicely with other languages and environments.
have you written much lua?
> especially difficult for new-to-programming gamers with great ideas to pick up
and you're proposing haskell or erlang as an alternative first programming language for somebody?