C++ still doesn't have good loop syntax

Mindy Batek (0xEAB) desisma at heidel.beer
Sun Aug 9 17:25:21 UTC 2026


On Sunday, 9 August 2026 at 17:22:07 UTC, Mindy Batek (0xEAB) 
wrote:
> PHP:
>
> ```php
> foreach ($vec as $i => $s)
>     echo $i, ": ", $s;
> ```

With this syntax, I've never had to wonder which variable was the 
key and which was the value.



More information about the Digitalmars-d mailing list