lua-users home
lua-l archive

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

On Thu, Mar 16, 2017 at 2:09 AM, Hisham <> wrote:
> (I've even seen `local append = table.insert` in the wild!).

It is not very surprising, because Go, Swift and Python call this
thing "append" (well, Go's append returns new value of a slice, so it
is slightly different). I don't like the fact that different words are
used to call this in languages: we already have push_back (C++), add
(Java, Javascript, C#), append (Python, Go, Swift), push (Perl, Rust),
array_push (PHP).

Best regards,
Boris Nagaev