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

Neia Neutuladh neia at ikeran.org
Mon Jan 28 17:33:09 UTC 2019


On Mon, 28 Jan 2019 16:59:22 +0000, 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)

You do you. I put all my source files inside a package unless it's a one-
file project mainly so that I can sort my import directives and have them 
organized nicely. But if you don't want to have to type `xmlboiler` five-
ish times per source file, you can skip it.


More information about the Digitalmars-d-learn mailing list