lua-users home
lua-l archive

Re: [ANN] Lua 5.3.0 (alpha) now available

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014年08月01日 17:28 GMT+02:00 Jerome Vuarand <jerome.vuarand@gmail.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.

AltStyle によって変換されたページ (->オリジナル) /