Suggestion - use local imports in Phobos

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jun 4 15:43:11 PDT 2013


On 6/4/13 5:13 PM, Jacob Carlborg wrote:
> On 2013-06-04 20:59, Idan Arye wrote:
>> One of Phobos' design goals was internal modularity. As Walter mentioned
>> in another
>> thread(http://forum.dlang.org/thread/kojnq5$2qst$1@digitalmars.com#post-kok6q3:24jen:241:40digitalmars.com),
>>
>> this goal has been greatly compromised. A long list of imports is a
>> common sight in the heads of Phobos' source files. This, ofcourse, is
>> done for a good reason - we all know the benefits of DRY.
>
> Tango contains some duplicated code just to avoid dependencies between
> modules.

One question would be where the right balance is, and how to make sure 
we strike it.

Andrei



More information about the Digitalmars-d mailing list