On Fri, Jun 1, 2012 at 12:47 PM, Marvin Humphrey <mar...@rectangular.com> wrote:
> In that vein, I would like to know: do you, as someone who has spent time in
> the trenches working with packaging, believe that version numbers and
> dependencies are best expressed at the distro level or at the package/module
> level?

It depends.

There are benefits to module-level dependency specification that I can see:

(a) they reflect that *actual* run-time dependency -- a .pm file that
is loaded via require/use (which means the .pm file can migrate to a
differently named distribution and dependency resolution still works)

(b) dependencies can be expressed/enforced in code via "use Foo 1.23"
or "Foo->VERSION(1.23)"

Thus, they map really well to what the interpreter actually needs to
know, whereas distribution-level dependencies have to be managed
entirely outside the interpreter with metadata and packaging tools.

-- David

Reply via email to