|
|
|
|
|
by nlitened
371 days ago
|
|
> “Make invalid states unrepresentable” I think this phrase sounds good but is not applicable to systems that touch messy reality. For example, I think it’s not even possible to apply it to the `tm` structure, as leap seconds are not known in advance. |
|
But we can do a lot without challenging the messy reality. 61 second minutes are (regrettably) a thing in some time systems, but negative 1 million second minutes are not a thing, there's no need for this to be a signed integer!