On Monday, 25 December 2017 at 09:25:46 UTC, Dan Partelly wrote:


2. Expceptions can be implemented in such a way that the run-time cost, when used ,is minimal.

I did some testing a few years ago with g++ and the ARM Cortex-M platform. I found that, compared with checking return values, using exceptions improved performance of the no-throw path, but paid a heavy cost for the throw path. I think that is a useful tradeoff if exceptions are used judiciously.

Mike

Reply via email to