[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: append to list operator
- From: Storkman <storkman@...>
- Date: Thu, 15 Aug 2019 23:41:48 +0000
On August 15, 2019 8:00:02 AM UTC, Oliver <oschmidt-mailinglists@gmx.de> wrote:
>On 13.08.19 06:45, Sean Conner wrote:
>> Well, another pain point is
>> veryLongNmae[complexLValue] = veryLongName[complexLValue] + 1
>
>a similar and common use case is appending an element to an array: it's
>also
>painful to write:
>
> complexLValue[#complexLValue + 1] = newElement;
You can avoid typing very long names by not having very long names in your program.
You can avoid repeating complex index calculations by storing the index in a variable or, preferably, not having complex index calculations in your program.
--
Storkman