Why I need DUB? Will never DMD don't just use import for import packages?

Andre Pany andre at s-e-a-p.de
Mon Mar 29 19:35:41 UTC 2021


On Monday, 29 March 2021 at 19:25:06 UTC, Marcone wrote:
> On Monday, 29 March 2021 at 19:14:41 UTC, Andre Pany wrote:
>> On Monday, 29 March 2021 at 19:06:33 UTC, Marcone wrote:
>>> Why can't I just use: import vibe.vibe; for import packages 
>>> like Nim or Python? Why I still use DUB?
>>
>> In python you also have pip.
>>
>> It is possible to use vibe.d (any dub package) without dub but 
>> you have a few manual steps involved.
>>
>> Kind regards
>> Andre
>
> Why DMD can't make automatic this few steps involved?

Every dub package is different. Copying files, different script 
hooks (e.g. before generation...), and many more.
This is not in the responsibility of a compiler, but in a package 
manager.

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list