Hipreme's #4 Tip of the day - Don't use package.d

Guillaume Piolat first.last at spam.org
Sat Nov 5 00:29:24 UTC 2022


On Friday, 4 November 2022 at 19:53:01 UTC, Adam D Ruppe wrote:
> This isn't that hard; in the old days you'd have `pkg.foo` then 
> `import pkg.all` instead of `import pkg;`.


It was worse, you would do

    import mylib.all;

and now it's just:

    import mylib;

Also the "all" concept is bad, it should really be "mylib.api", 
because why import the private symbols.


More information about the Digitalmars-d-learn mailing list