[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <email@example.com> 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
>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.