News for hackers. Stuff that matters.
Re:Avoid Indirection in Code by blub on Monday June 24, 2019 @04:32AM (#20261530)
All of those questions can be answered through comments. I'd vote for a separate function.

Some of the answers can be encoded in the type system through the use of time units (like std::chrono), optional return values and design by contract (preconditions). Unit tests could be added to further clarify some edge cases.

There are no comments on this comment yet.