digitalmars.D.bugs - [Issue 13255] New: static imports should be done lazily
- via Digitalmars-d-bugs (22/23) Aug 04 2014 https://issues.dlang.org/show_bug.cgi?id=13255
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 puremagic.com Reporter: code dawg.euFrom 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