imports like in Go. to avoid package naming collisions [feature request]

Siarhei Siamashka siarhei.siamashka at gmail.com
Sun Dec 25 14:12:11 UTC 2022


On Sunday, 25 December 2022 at 13:13:25 UTC, AnimusPEXUS wrote:
> On Friday, 23 December 2022 at 03:56:08 UTC, AnimusPEXUS wrote:
>> because somebody registered package named 'dutils' on dub 
>> registry and now it collides with my local package with same 
>> name.
>
> I think I've came up with some collision avoid decision: I'll 
> calc CRC for my 'github.com/AnimusPEXUS' profile and will use 
> it like so: 'p315cffe8_packagename' so all my packages will 
> have 'p315cffe8' prefix in names.. or maybe 
> 'crc32_315cffe8_packagename', to define hash method.

Why not `AnimusPEXUS.packagename`? Similar to `arsd.*`, `mir.*` 
or some other package name prefixes. This should work fine and 
avoid collisions until somebody intentionally hijacks your 
package prefix name (but in this case p315cffe8 won't save you 
either).


More information about the Digitalmars-d mailing list