External Publication
Visit Post

`Instant::PAST_VALUE` constant?

Rust Internals [Unofficial] May 12, 2026
Source

I think it would make sense to use a different definition: Instant::MIN. This would be always the earliest representable instant, so there is no arbitrary choice. It would be useful in more situations, such as the start of a range of instants, or guards against numeric overflow.

It would have to be documented as platform-specific, and not guaranteed to remain the same on each platform, of course.

Discussion in the ATmosphere

Loading comments...