Re:Rust is more than safety
by olejorgenb on Wednesday December 28, 2016 @05:24PM
(#13274215)
According to http://stackoverflow.com/a/13836329/1517969 modern c++ exceptions are free when no throw occurs.
[ Parent
| on HN ]
In addition, Rust Results/Options are free when no throw occurs. So the argument is moot.
No they aren't, you must issue a compare instruction to verify the result was successful.
Re:Rust is more than safety
by oconnor663 on Saturday January 07, 2017 @05:37PM
(#13347077)
Do you know whether branch prediction makes them effectively free, in places where the result is almost always successful?