lua-users home
lua-l archive

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




On Fri, Mar 30, 2018 at 11:05 AM, Francisco Olarte <folarte@peoplecall.com> wrote:
On Thu, Mar 29, 2018 at 10:36 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
.....
> Negative indices are useful; take for example the 'arg' array. I much
> prefer the Lua way, where t[-1] means t[-1], to the Python way, where
> t[-1] means t[#t-1],

​...



​I hate one-based indexing​. It adds a ton of confusion when embedding lua into a native programming language project, and tarnishes what I'd consider to be a fantastically good language otherwise.