Why is there no range iteration with index by the language?

Seb seb at wilzba.ch
Wed Jun 10 01:55:43 UTC 2020


On Wednesday, 10 June 2020 at 01:35:32 UTC, Q. Schroll wrote:
> On Wednesday, 10 June 2020 at 00:53:30 UTC, Seb wrote:
>> It's a bit more complicated though as you need to avoid subtle 
>> breakage with ranges that return tuples that are auto-expanded 
>> like e.g. `foreach (k,v; myDict)`.
>
> Okay, I can accept that. It's a poor decision, but well, it is 
> what it is.
>
>> Anyhow, I would be highly in favor of DMD doing this. It's one 
>> of those many things that I have on my list for D3 or a D fork.
>
> Is there any "official" or at least public list for D3 
> suggestions?
> Many people here talk about it recently...

No, there's nothing "official" not public lists yet.
However, there are two good related wiki pages:

https://wiki.dlang.org/Language_issues
https://wiki.dlang.org/Language_design_discussions



More information about the Digitalmars-d-learn mailing list