DIP10005: Dependency-Carrying Declarations is now available for community feedback

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 30 15:49:23 PST 2016


Stefan Koch <uplink.coder at googlemail.com> wrote:
> On Friday, 30 December 2016 at 22:29:18 UTC, Chris Wright wrote:
>> * Performance improvements, primarily when a module imports 
>> another,
>> bulky module for optional functionality.
> That is solved by selective imports.
> 
>> * Making it easier to locate where things are defined when 
>> reading code.
> 
> That is solved by selective imports.
> 
>> * Making it easier to move declarations between files.
> 
> That is solved by selective imports.
> 
> Inline imports are really just a addition retrive the the 
> deprecated behavior of fullyQualifedNames which would implicitly 
> import.
> 

The main win, which indeed is not emphasized enough, is better
encapsulation. Walter pointed that out, and I will redo the DIP to put that
front and center.



More information about the Digitalmars-d mailing list