search for: someotherfn

Displaying 2 results from an estimated 2 matches for "someotherfn".

2020 Aug 17
2
Exceptions and performance
...imply ignore the error)? There's also the fact that explicit error checking lets the programmer > simplify the CFG explicitly. If you're calling two functions that don't > depend on any data flow between them, you can do something like: > > auto a = someFn(); > auto b = someOtherFn(); > if (!a || !b) > doSomeErrorHandlingStuffs(); > > Transforming exception-driven code into this structure would be an > invalid transform unless the compiler could prove that someOtherFn() has > no observable side effects. > I didn't fully understand this part. I...
2020 Aug 14
3
Exceptions and performance
On Thu, Aug 13, 2020 at 6:35 PM Haoran Xu <haoranxu510 at gmail.com> wrote: > > Thanks for the reply. > >> Sorry, yes. No difference between explicit error handling and >> exceptions. The difference is in all the functions that don't have >> explicit error handling but (in the exception-using equivalent code) >> aren't marked nothrow (where, without