lua-users home
lua-l archive

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


On 2017-Mar-25 (Sat) at 12:42 (+0200), steve donovan wrote:

>> I've always found the determination of people to hate 1-based indexing
>> puzzling. After all, it's not an offset, it's an index.  But each to
>> their own.

Steve,

   Yes!  In fact, 1-based indexing is one of the ( several ) reasons
   that I like Lua.  I detest either using, or teaching, the unnatural
   "0 to length-1" pattern of many other "high-level"(?) languages.

   But you're right -- "each to their own".  0 versus 1 debates are
   similar to emacs versus vi debates :-)

Joseph

------------------------------------------------------------------------
Joseph Manning / Computer Science / UCC Cork Ireland / manning@cs.ucc.ie
------------------------------------------------------------------------