Bring back foreach int indexes

bachmeier no at spam.net
Thu Nov 30 14:31:42 UTC 2023


On Thursday, 30 November 2023 at 11:54:01 UTC, IGotD- wrote:
> 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".

Do you have an example where it can cause problems in this case?


More information about the Digitalmars-d mailing list