4 ms·
I chose divide-by-zero because it is super easy for everybody to understand. But that is not important. In a real application it might be a unicode error, a da
by kkapelon 2y ago
I chose divide-by-zero because it is super easy for everybody to understand.
But that is not important. In a real application it might be a unicode error, a date error, a wrong-format error or something else.
- ErikBjare 2y agoIn a language with errors as values, 100% code coverage (and no `unwrap()`) would force you to handle all the types of errors you mention.