[Issue 13255] New: static imports should be done lazily

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 4 11:50:26 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13255

          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 at puremagic.com
          Reporter: code at 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

--


More information about the Digitalmars-d-bugs mailing list