Krock wrote:Lua is confusing for programmers
Every programming language is a little different. I've worked in Java, C, PRPC, COBOL, VB, Assembler, Pascal, Javascript, Notetab Clips, Jython, and probably at least 8 different forms of Basic. If Lua began it's indexing at 0 instead of 1 it would be confusing to programmers from a different background.
What's tripping me up the most is Lua's requirement for a "then" on an if. But when I first switched from primarily programming in Pascal to primarily programming in Java, it was the LACK of a "then" that confused me. Every programming language has it's individual quirks.
As for everything being one type of variable, yeah, it is still taking me a while to get used to that, but that is one of Lua's strengths. It is designed to be a scripting language that works easily when interacting with just about any other parent language. Because Lua's variables are not strongly typed, they are VERY flexible.
Lua is simple and obvious enough that even non-programmers can work in it pretty quickly with just a few examples.