Why I Prefer Exceptions to Error Values

Open link in next tab

Why I Prefer Exceptions to Error Values

https://cedardb.com/blog/exceptions_vs_errors/

Exceptions are often a better way to handle errors than returning them as values. We argue that traditional exceptions provide better user and developer experience, and show that they even result in faster execution.