On Fri, 8 Jan 2021, Sven Schreiber wrote:
Am 08.01.2021 um 17:16 schrieb Allin Cottrell:
> On Fri, 8 Jan 2021, Artur Tarassow wrote:
>> 1) Using a foreach loop looks very natural (at least) to me when
>> iterating over bundles and matrices -- even though it may be redundant
>> [...]
>
> OK, I take your point. Now in git
>
> loop foreach i <array>
>
> is taken as syntactic sugar for
>
> loop i=1..nelem(<array>)
>
> (If <array> is not an array of strings, $i just gives the string
> representation of the index.)
Wasn't the idea of the release candidate to only fix bugs, not add new
features?
Admittedly, yes. But there's a case for considering this a bug-fix.
I accept Artur's point that having once accepted bundles and strings
arrays as targets for "foreach", it's inconsistent to ignore other
arrays -- that is, treat their identifiers as just dumb strings.
Allin