[Language construct idea] The for loop with prepare step

Quirin Schroll qs.il.paperinik at gmail.com
Thu Feb 15 15:24:40 UTC 2024


On Tuesday, 13 February 2024 at 18:19:40 UTC, H. S. Teoh wrote:
> […]
> Maybe a better syntax might be:
>
> ```d
> foreach(...) {
> } continue {
> }
> ```

This looks like it is target of `continue`, which it (probably) 
wouldn’t be.

I don’t think this feature makes no sense for `foreach` loops; 
those are high-level, and this is a low-level feature.


More information about the Digitalmars-d mailing list