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/[email protected]
Comment #1 by dfj1esp02 — 2017-05-24T12:09:28Z
Renamed import should be done lazily too, if issue 13242 didn't get it.
Comment #2 by robert.schadek — 2024-12-13T18:23:29Z