Suggestion for DUB users: The vanity package

Paul Backus snarwin at gmail.com
Tue Oct 19 19:31:20 UTC 2021


On Tuesday, 19 October 2021 at 16:37:00 UTC, Kagamin wrote:
> If we can have several libraries starting with com and org, why 
> not have a default package `d` or `dlang` used by everyone, so 
> it would be
> module d.bitblob;

Then you have to get everyone using that package to agree not to 
create naming conflicts. E.g., if I decide to publish `d.foo`, 
nobody else is allowed to publish their own `d.foo`.

But if you are capable of doing that, then you don't need the 
package at all: you can just get everybody to agree to avoid 
naming conflicts at the top level.

The reason prefixes like `geod24` are necessary in the first 
place is because we *cannot* get the entire community to 
coordinate in the way that you're proposing.


More information about the Digitalmars-d mailing list