3 ms·
Go's terminology matches java, and is the exact reverse of your comments: a package is a namespace, a module is a bundle of 1..n namespaces (packages).
by masklinn 8y ago
Go's terminology matches java, and is the exact reverse of your comments: a package is a namespace, a module is a bundle of 1..n namespaces (packages).
- paulddraper 8y agoJava "packages" are namespaces, Java "modules" are modules, and Maven/Ivy "modules" are packages.
- _old_dude_ 8y agoMaven modules are a bit of a mess, it's a set of packages but a package can be split into different Maven modules. I agree with the GP that go package/module are similar to Java package/module
- snuxoll 8y agoMaven modules aren’t necessarily packages; you can have POM only maven artifacts for things like BOM’s, for example. Thankfully the whole split-package nonsense will eventually go away, since the JPMS doesn’t allow a package to reside in multiple modules.
- paulddraper 8y agoJava packages (namespaces) can be split across Maven modules (packages). That doesn't seem weird to me. Lots of languages can split their namespaces across packages.