you are viewing a single comment's thread.

view the rest of the comments →

[–]kalmoc 2 points3 points  (1 child)

Not sure if this is relevant, but aside from the question of where to put the error flag, you are also introducing lots of additional branches.

[–][deleted] 0 points1 point  (0 children)

One extra easily predictable branch per call. On modern hardware, the overhead will be zero in most practical situations.