Should I prefix package names with the name of my program?

Steven Schveighoffer schveiguy at gmail.com
Mon Jan 28 19:54:23 UTC 2019


On 1/28/19 11:59 AM, Victor Porton wrote:
> Should I prefix all module names with `xmlboiler.` (where XML Boiler is 
> the name of my program). These packages are expected to be used 
> internally by my program, not as an exported API (however there are some 
> little chances that in the future I will make a public API)

I use a package nearly every time because if you don't, you run into 
weird quirks of the language for top-level modules.

You might use a short name, like `xmlb` or something.

-Steve


More information about the Digitalmars-d-learn mailing list