Front page | perl.perl5.porters |
Postings from July 2009
Re: version-0.77 and You
Thread Previous
|
Thread Next
From:
John Peacock
Date:
July 15, 2009 16:06
Subject:
Re: version-0.77 and You
Message ID:
4A5E60D9.6020303@havurah-software.org
Gisle Aas wrote:
> I think the term "dotted-decimal" is pretty confusing, especially when
> what you contrast that with is "decimal version numbers" (which includes
> a dot). I suggest you call it "integers separated by dots" or
> "dotted-integers" for short.
They used to be fevered to as "numeric" and "extended" versions; I think
the decimal and dotted-decimal are a vast improvement (thanks David!).
I don't think "dotted-integer" is quite as good, if only because it has
no poetic flow.
> In the section about declaring versions in the traditional way (using
> decimal $VERSION) I suggest it's presented in the string form:
>
> our $VERSION = "1.02";
>
> This is the recommended form as you don't get surprises when the version
> number turns into "1.10".
Except that form (quoted) is wrong. There is still code that assumes
that $VERSION contains a number, not a string, and will barf. You can
get away with that with version objects, but not plain old numeric. It
also makes it hard for people to remember that on a 'use' line, you must
not quote it.
John
Thread Previous
|
Thread Next