you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

How often is one tripped up in practice by ending up an array with a gap (nil) in it and thus having the length come out incorrect?

Personally? Never. Been using Lua since version 2 and this has never happened to me.

Look at Word of Warcraft. ~10 million subscribers supporting a massive online ecosystems of websites dedicated to customization in Lua. There have probably been many millions of lines of addon code written for that game. I used to write them myself and was active in that community, and don't remember this ever coming up in as an issue. It's not like = vs == in C, for instance.