News for hackers. Stuff that matters.
Re:Push ifs up and fors down by mcronce on Thursday November 16, 2023 @01:16AM (#38286293)
The author called out the newtype solution specifically in the first paragraph:

> it could push the task of precondition checking to its caller, and enforce via types (or an assert) that the precondition holds

(Emphasis mine)

There are no comments on this comment yet.