4 ms·
The ultimate suggestion of a name, version pair is easy enough to understand, but I also don't get what mentioning tuples is intended to show. In practice, a s
by hyperpape 9y ago
The ultimate suggestion of a name, version pair is easy enough to understand, but I also don't get what mentioning tuples is intended to show.
In practice, a string with a required format of "x.y.z" just is a 3-tuple of ints. Restricting the values to ints makes it easy enough to parse.
The example of npm shows some weird extensions like "1.2.3pre" which definitely complicate parsing, but that's not as much a difference between strings and tuples, as a difference between having a lot more options.