3 ms·
Which is why Result and Error types exist. With those you get both the context of the error as well as making it clear that the code you are entering needs erro
by Johan-bjareholt 7y ago
Which is why Result and Error types exist. With those you get both the context of the error as well as making it clear that the code you are entering needs error handling to be safe. Much less of an issue than calling code that unexpectedly raises exceptions.
- he0001 7y agoAnd they do have their uses but they are not good enough by their own. Having both exceptions, result types and maybes is a lot better to have and to use appropriately than only have one or the other.