proposal: private module-level import for faster compilation

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 22 01:28:00 PDT 2016


On 07/22/2016 10:23 AM, Kagamin wrote:
> On Friday, 22 July 2016 at 06:38:25 UTC, Jacob Carlborg wrote:
>> The .di/header for module "a" don't need to include "import b" because
>> "Bar" is not part of the interface of module "a".
> 
> It works for your example, but doesn't work for idiomatic D code, which
> is always heavily templated.

.. which naturally leads to watching about Benjamin DConf talk about
fixing "export" and that is where everything clicks together. Organizing
large projects as bunch of small static libraries per package and
defining public API of those via `export` (and not just public) would
achieve this topic goal and much more, all without changing the language.


More information about the Digitalmars-d mailing list