[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.0 (alpha) now available
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 1 Aug 2014 17:41:47 +0200
2014-08-01 17:28 GMT+02:00 Jerome Vuarand <email@example.com>:
> table.insert already has an optional middle argument, I don't see any
> issue there (yeah some people complain about it, but some people
> complain about virtually anything).
A little ad-hominem argument serves to discredit the opposition, no?
Personally I always use Steve Donovan's idea:
local append, insert = table.insert, table.insert
and consistently use append for the two-term and insert for the
three-term case. Why complain if one can work around?
But given the chance to design table.copy from scratch, it does
seem a pity to put a big gotcha in it when it can be avoided.