[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Project lead nominations for standard libraries?
- From: Wim Couwenberg <wim.couwenberg@...>
- Date: Sun, 2 Jan 2011 00:07:00 +0100
> After seeing the huge discussion of #, I personally wouldn't be caught dead
> using it.
"t[#t + 1] = v" is a pretty standard idiom and no doubt faster than
table insert. Also I think that 5.2 encourages to use "for i = 1, #t
do" over "for i, v in ipairs(t) do". At least it took some discussion
to keep ipairs in at all.