Bring back foreach int indexes

IGotD- nise at nise.com
Thu Nov 30 11:54:01 UTC 2023


On Thursday, 30 November 2023 at 11:01:15 UTC, Hipreme wrote:
>
> That is because there is no reason to have explicit conversions 
> everywhere, they are overly verbose and ugly. And this is one 
> of the reasons because I don't use `foreach` in my code. Good 
> old `for` loop can let you decide the type. Modern programming 
> languages should reduce friction, and not increase it.

One of the corner stones in D is that there are hardly any 
implicit conversions. I not saying personally against it but it 
is one of the main D "features".



More information about the Digitalmars-d mailing list