[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: When is multiple assignment good style?
- From: Nagaev Boris <bnagaev@...>
- Date: Thu, 16 Mar 2017 02:31:48 +0000
On Thu, Mar 16, 2017 at 2:09 AM, Hisham <h@hisham.hm> 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