How can we make it easier to experiment with the compiler?

Walter Bright newshound2 at digitalmars.com
Mon May 24 22:52:51 UTC 2021


On 5/24/2021 3:18 AM, poffer wrote:
> On Monday, 24 May 2021 at 09:41:12 UTC, Walter Bright wrote:
>> On 5/24/2021 1:40 AM, poffer wrote:
>>> A good enhancement to the language would be adding some sort of module 
>>> declaration that just states the admitted import packages or modules. I know 
>>> that could be done by an external tool, but I feel that this one is a common 
>>> problem.
>>
>> Importing unused modules is a problem, but a minor one. The larger problem is 
>> needing those modules.
> 
> No. What I mean is a declaration that for example, allows only import from dmd 
> in dmd/backend, of declare that imports from dmd/root are forbidden.

Ok, now I understand what you meant.


> Aren't you the guy pushing from declarations over conventions?

Snark isn't necessary.


> Conventions do not scale.

Please propose a DIP for your idea.



More information about the Digitalmars-d mailing list