Verona spec: Trailing zeros
Iris Clark
iris.clark at oracle.com
Tue Jun 30 19:11:52 UTC 2015
Hi.
The JEP is inconsistent with regard to trailing zeros in the version number. I've made the following modifications:
- The definition of the version number is modified to remove trailing zeros.
- The paragraph defining the short version string `$SVSTR`, in the "Version string" section was split. The examples of trailing zero elimination were moved to the earlier "Version number" section. The definition of the short version string remains in the original location.
- Examples were adjusted to remove trailing zeros as necessary.
I've appended complete diffs.
As always, please let me know if there are any concersn.
Regards,
iris
-----
102,103c102,103
< A _version number_ is a non-empty sequence of non-negative integer
< numerals, without leading zeroes, separated by period characters
---
> A _version number_, `$VNUM`, is a non-empty sequence of non-negative integer
> numerals, without leading or trailing zeroes, separated by period characters
105c105
< `[1-9][0-9]*(\.(0|[1-9][0-9]*))*`. The sequence may be of arbitrary
---
> `^[1-9][0-9]*(((\.0)*\.[1-9][0-9]*)*)*$`. The sequence may be of arbitrary
145a146,149
> The version number does not include trailing zero elements; _i.e._,
> `$SECURITY` is omitted if it has the value zero, and `$MINOR` is omitted
> if both `$MINOR` and `$SECURITY` have the value zero.
>
187,191c191,192
< A _short version string_, often useful in less formal contexts, is simply
< `$MAJOR.$MINOR.$SECURITY` with trailing zero elements omitted; _i.e._,
< `$SECURITY` is omitted if it has the value zero, and `$MINOR` is omitted
< if both `$MINOR` and `$SECURITY` have the value zero. A short version
< string may optionally end with `-$PRE`.
---
> A _short version string_ (`$SVSTR`), often useful in less formal contexts, is
simply
> `$VNUM` optionally ended with `-$PRE`.
199,200c200,201
< Early Access 1.9.0-ea-b19 9-ea 9.0.0-ea+19 9-ea
< Major 1.9.0-b100 9 9.0.0+100 9
---
> Early Access 1.9.0-ea-b19 9-ea 9-ea+19 9-ea
> Major 1.9.0-b100 9 9+100 9
More information about the verona-dev
mailing list