14 ms·
A reverse approach would lose exception details; you cannot recover what exactly happened from a mere boolean and you may need it. It may not be possible to ma
by Mikhail_Edoshin 7y ago
A reverse approach would lose exception details; you cannot recover what exactly happened from a mere boolean and you may need it.
It may not be possible to make exceptions totally free, but the rest of the language may be slow enough so they won't stick out :) Example: Python.
- ncmncm 7y agoTypically "try_parse" returns more than a bool on failure. What it does return is then wrapped and thrown.