Comment on Perhaps Rust Needs "Defer"parentComments−Traubenfuchs1yIf it's really fine, shouldn't the compiler optimize that if away?−lifthrasiir1yOf course (there are several GCC attributes for that), but it is not really like that an additional check improves readability anyway.−cozzyd1yIt has different performance characteristics−kadoban1yIsn't that common with changes the optimizer does? What else is the point of it?
Comments
If it's really fine, shouldn't the compiler optimize that if away?
Of course (there are several GCC attributes for that), but it is not really like that an additional check improves readability anyway.
It has different performance characteristics
Isn't that common with changes the optimizer does? What else is the point of it?