mojombo/semver.org — Issue #47: Negative Version Numbers
Author: chrisbroome
Created: 2011-11-10 15:38:34+00:00
State: open

As stated right now, spec rule number 2 allows for negative integers to be used in version numbers. Is this desirable? If so, it should probably be clarified in the rule - something like the following (emphasis provided for clarity here but should be removed in the final spec):

2. A normal version number MUST take the form X.Y.Z where X, Y, and Z are integers. **Note that negative integers are allowed.** X is the major version, Y is the minor version, and Z is the patch version. Each element MUST increase numerically. For instance: 1.9.0 < 1.10.0 < 1.11.0.

If not, I suggest revising the rule as follows:

2. A normal version number MUST take the form X.Y.Z where X, Y, and Z are **non-negative** integers. X is the major version, Y is the minor version, and Z is the patch version. Each element MUST increase numerically. For instance: 1.9.0 < 1.10.0 < 1.11.0.

Chris