4 ms·
> Just let me collect strings and print them to a log. If that's something you want to do, that's quite easy. Vec<String> is your error type. Done. But if you
by steveklabnik 10y ago
> Just let me collect strings and print them to a log.
If that's something you want to do, that's quite easy. Vec<String> is your error type. Done.
But if you want to build something a bit richer, for example, to differentiate between the case in which you answered a question wrong, or when the examiner fails you, you could do that as well. It all depends.
But errors as values is what allows you to have that flexibility; it's easily extensible.
- lisivka 10y agoThanks you, I got the idea.