Proposal: changes to version.IsDev
Gustavo Niemeyer
gustavo.niemeyer at canonical.com
Fri Mar 22 00:48:31 UTC 2013
The reason for the odd everything is that it allows tip to be marked
+1 as soon as the prior release is done, and allows you to test it in
the real world without affecting people not aware before the release
is ready.
YMMV, though.
On Thu, Mar 21, 2013 at 6:33 PM, Tim Penhey <tim.penhey at canonical.com> wrote:
> Hi again...
>
> // IsDev returns whether the version represents a development
> // version. A version with an odd-numbered major, minor
> // or patch version is considered to be a development version.
> func (v Number) IsDev() bool {
> return isOdd(v.Major) || isOdd(v.Minor) || isOdd(v.Patch) || v.Build > 0
> }
>
>
> To me this seems a little extreme.
>
> In other projects I have worked on, an odd minor version number is
> sufficient to say that something is a development version. Not any odd
> number.
>
> This would mean:
> 2.0.0 - is a release
> 2.1.0 - is a development version
> 2.2.1 - would become a released version (2.2 with a patch)
> 3.0.0 - would be a release version
>
>
> So.. proposal would be to simplify the function to be:
>
> func (v Number) IsDev() bool {
> return isOdd(v.Minor) || v.Build > 0
> }
>
>
> Any objections?
>
> Tim
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev
--
gustavo @ http://niemeyer.net
More information about the Juju-dev
mailing list