In more ways than one, programmers are born to have strong opinions about tiny things, and here are 5 of mine. Follow these 5 tips--or disagree with them veh...
Such a case would be the single function having a side effect*. This allows the caller to chose when to execute the side effect or to drop the result without executing it.
In my opinion that is fine with fn_once but not into because of the implicit contract of these traits.
* = I’m counting expensive computation, but not allocation and memcopy as a side effect in this comment.
Such a case would be the single function having a side effect*. This allows the caller to chose when to execute the side effect or to drop the result without executing it.
In my opinion that is fine with
fn_once
but notinto
because of the implicit contract of these traits.* = I’m counting expensive computation, but not allocation and memcopy as a side effect in this comment.