Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mmstick
· 9y ago · 0 comments
In addition, Rust Results/Options are free when no throw occurs. So the argument is moot.
Comments
[–]
softc
9y ago
No they aren't, you must issue a compare instruction to verify the result was successful.
[–]
oconnor663
9y ago
Do you know whether branch prediction makes them effectively free, in places where the result is almost always successful?