Re:Please put units in names
by usrusr on Monday March 21, 2022 @04:59AM
(#30751830)
You'll want to leave the point floating to floating point numbers, but whenever you interact with legacy APIs or protocols you want a type representing the scale they use natively. You wouldn't want to deal with anything based on TCP for example with only seconds (even if client code holds them in doubles), or with only nanoseconds. But you certainly won't ever miss a type for kiloseconds.
[ Parent
| on HN ]
There are no comments on this comment yet.