www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13255] New: static imports should be done lazily


          Issue ID: 13255
           Summary: static imports should be done lazily
           Product: D
           Version: unspecified
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

From a discussion on reducing "phobos dependencies" [1].
It's possible to make static imports and selective imports lazy without changing semantics. And as Andrei mentioned it's even possible to defer global imports until the first unqualified symbols needs to be resolved. Implementing this would allow to minimize coupling of an API. Right now transitive imports in phobos account for a big part of D compile times in smaller projects. This is an even more important enhancement for fast compile times in big projects with many dependencies. [1] http://forum.dlang.org/post/lad0fs$glp$1 digitalmars.com --
Aug 04 2014