|
On Jun 28, 2013, at 5:18 AM, Philipp Janda <siffiejoe@gmx.net> wrote: Why do you care if it's an "array"? No matter what, you can access the values for the integer keys from 1 to n. If nil is not allowed as a value, Lua gives you a fast way to calculate that n. If nil may be in there somewhere, somebody better tell you where this table is supposed to end because that information is not obvious! Yes, it's NOT obvious. It could be MADE obvious by using "empty" instead of nil, in which case the "fast way to calculate n" would be MORE useful, which seems to me a good thing, doesn't it? Are you saying it's a bad idea to make arrays more useable? Is it better to have 20 different workarounds to a common problem than one simple, clear, language supported fix? --Tim |