DIP 1022--foreach auto ref--Community Review Round 1

Dukc ajieskola at gmail.com
Thu Aug 8 13:16:09 UTC 2019


On Thursday, 8 August 2019 at 13:06:28 UTC, rikki cattermole 
wrote:
> On 09/08/2019 12:52 AM, Dukc wrote:
>> On Thursday, 8 August 2019 at 12:38:51 UTC, rikki cattermole
>
> If we can do a little bit of research now to prevent changing 
> an implementation after a DIP is accepted, we probably should.
>
> When no code is written, changing tactic is cheap :)

Yes, but I can't, quickly at least, come up with any way to 
reveal those loops without touching the compiler.


>
> The EMSI-containers example while useful, has a lot of extra 
> code that you have to think about. Or at least it does for me.
>
> Basically what I would like to have is an expression +
> foreach statements that are current (and will remain) +
> foreach statements that will no longer be valid +
> foreach statements that will become valid
>

So it's mainly about minimizing the example more? Fair argument. 
I'll have to try.




More information about the Digitalmars-d mailing list