On Tue, Apr 21, 2009 at 4:46 PM, Yitzchak Scott-Thoennes
<[email protected]> wrote:
> But then, I'm sticking to the rule:
>
> $VERSION SHOULD be a version object.
> $VERSION MUST be a number or version object.
Nice. I think you just compressed 80% of my verbose recommendation to
2 pithy lines. I would add:
Version objects SHOULD (MUST?) be stringified using the normal() method.
I would say "MUST" if qualified along the lines of "for use in module
or distribution metadata". Those three rules would about cover it for
authors and toolchain modules that are emitters of version information
and would make it easy for consumers.
The heuristics for things that don't follow those rules are a bit more
involved, as we've seen.
The only missing piece is that it doesn't specify how numbers and
version objects are to be compared/sorted (for non-perl things that
can't rely on version.pm).
-- David