C++ still doesn't have good loop syntax

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


On Wednesday, 15 July 2026 at 01:43:56 UTC, Walter Bright wrote:
> ```d
>     foreach (i, s; vec)
>         writeln(i, ": ", s);
> ```

PHP:

```php
foreach ($vec as $i => $s)
     echo $i, ": ", $s;
```


More information about the Digitalmars-d mailing list