You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, the version is always semantically extended by an infinite list of zeroes, so an empty version is essentially equivalent to version 0, 0.0, 0.0.0, and so on. (In fact they compare as equal.) It's a similar special case to how an empty sum equals zero and an empty product equals one.
Tho of course the at method (for negative indices) and the conversion to an array/string do expose the exact list of given components.
And since you can just write version(0), I'm not against forbidding version() either.
Activity
T0mstone commentedon Nov 10, 2026
Well, the version is always semantically extended by an infinite list of zeroes, so an empty version is essentially equivalent to version
0,0.0,0.0.0, and so on. (In fact they compare as equal.) It's a similar special case to how an empty sum equals zero and an empty product equals one.Tho of course the
atmethod (for negative indices) and the conversion to an array/string do expose the exact list of given components.And since you can just write
version(0), I'm not against forbiddingversion()either.MDLC01 commentedon Nov 13, 2026
Note that currently, empty versions are displayed as the empty string. This should probably be fixed if we decide to allow them.