4 ms·
Author here. Caught red-handed not running it on playground. Thanks for the correction. > I’d generally prefer to use exceptions to indicate exclusively progra
by valand 6y ago
Author here. Caught red-handed not running it on playground. Thanks for the correction.
> I’d generally prefer to use exceptions to indicate exclusively programmer errors
The idea that panic/exception means programmer errors worth to be noted. It think they should be intended for errors that is intended to be unrecoverable. Still, catching errors on runtime is not fun