2 ms·
Probably not. I could definitely see using something like this to force some constraints on my favorite bugbear for my problem domain: values that should have
by shadowgovt 3y ago
Probably not.
I could definitely see using something like this to force some constraints on my favorite bugbear for my problem domain: values that should have units. It matters a lot if "time" is nanoseconds, microseconds, or seconds, but most time-related functions just take in "number" like that's okay and won't cause thousand- or million-fold magnitude errors.
This is one way to provide some language safeguarding against treating 5 nanoseconds as the same as 5 microseconds.