The current value of a variable may be "X" or "Y".
A function needs to make sure it is "X".
In general -- with say C integers-- which is more efficient:
"if not X, then set to X"
"just set it to X anyway"
And does that change when the "value" is an Objective-C (immutable) object that has to get re-created?
And in both cases is this something everyone agrees on, or a debatable matter?