Palindromes

Jim Barnett via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 3 17:10:41 PST 2015


On Friday, 4 December 2015 at 00:50:17 UTC, Meta wrote:
> On Friday, 4 December 2015 at 00:26:23 UTC, Jim Barnett wrote:
>> On Friday, 4 December 2015 at 00:23:45 UTC, Jim Barnett wrote:
>>> The `import` statement inside the `for`-loop kind of smells 
>>> to me.
>>>
>>
>> Sorry, inside the `while` loop
>
> In D it's considered idiomatic, but it can also cause some very 
> hard to detect errors from time to time... I hate it for this 
> reason and never do it in my own code.

Really? If it leads to "hard to detect errors", I have a hard 
time believing that can be "idiomatic D". I have never seen a 
language that encourages the user to specify dependencies inside 
a loop. I am hoping I misunderstood something here.


More information about the Digitalmars-d-learn mailing list