4 ms·
Can you help us understand why?
by spicyj 11y ago
Can you help us understand why?
- wyldfire 11y agoI speculate that it's because it's not treated like a Real number, where values increase like [0.1, 0.2, 0.25, 0.27, 0.29, 0.30]. React 0.14 supercedes 0.13 but it is not superceded by 0.9.
- scrollaway 11y ago14 > 13 > 9 "Math is pure crap"?
- clessg 11y agoWell, fwiw, 0.9 > 0.14 > 0.13. Guess it depends on how you look at it.
- scrollaway 11y agoThe "." in versions is not a decimal point. There's certainly no such number as 0.9.1.
- clessg 11y agoI know. Which is why I said that it depends on how you look at it.
- pluma 11y agoI guess this causes less brainhurt when your native language uses a different decimal separator.
- bsimpson 11y agoIf you sort lexographically or treat those as decimals, it becomes 14, 13, and 90. This is a flawed interpretation, but perhaps what wyldfire was trying to demonstrate.
- wyldfire 11y agoAs other posters indicate it's not that simple IMO. Then again, we are off on a bit of a tangent -- just my guess, not KenanSulayman's actual reasoning. I find this mechanism of versioning mildly irritating (but I wouldn't call it 'crap'). I recognize that it's popular and I just suss the convention from the history.
- chadly 11y agoIt's not a decimal number. It's a version number. If you add the implicit .0 back to the end of 0.14, it is easier to see. 0.14.0 is obviously not a decimal number. 14 > 13 > 9
- wyldfire 11y agoYeah, FWIW it's not a new problem and I'm not confused by this in general but I don't prefer it. But I think we can all take a step back and see the ambiguity right?
- scrollaway 11y agoIs it really that unreasonable to say that the ambiguity is long gone when version numbers now commonly contain several points and often letters and dashes and what not?
- coldtea 11y agoWhy developers can't understand that not all uses of numeric digits are meant to behave like numbers? Time, as in 00:12 is not a number either, it wraps around in 11:59 (or 23:59 in 24 hour mode)
- deleted 11y ago[deleted]