Introduce PackageName, to fully type a package name
Package names being passed around in the Dub codebase are string, which is problematic as it suffers from validation / semantic issues. Validation because we cannot impose restrictions on characters or length easily, and semantic because some functions expect a main package while some would accept a subpackage. Introducing a type will remedy both those issues. |
---|
|
source/dub/commandline.d |
---|
source/dub/dependency.d |
---|
source/dub/dub.d |
---|
source/dub/packagemanager.d |
---|
source/dub/project.d |
---|
source/dub/recipe/io.d |
---|
source/dub/recipe/json.d |
---|
source/dub/recipe/packagerecipe.d |
---|