The cost/benefit analysis of comparing before an assignment