Bug 14666, can we prioritize ?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 9 23:55:53 PDT 2015


On 6/9/2015 10:39 PM, deadalnix wrote:
> The actual code is far more complex than the presented sample :)
>
> That what I'm trying to do in general, but here I'm faced with cases that are
> very hard to untangle.

The 'tangle' of cyclical import graphs, as you so appropriately put, is not only 
hard on the compiler, it makes it much harder for human readers to make sense of 
code. Even reading your little code snippet hurts my brain.

Go, in one of their better decisions, decided "Thou Shalt Not Have Import 
Cycles". This forces users to untangle their code, and I believe that is A Good 
Thing.

I'd like to do that for D, but of course it is far too late for that.


More information about the Digitalmars-d mailing list