4 ms·
I totally get these issues, and one definitely should be aware of them when designing a system. It just feels a bit weird to treat these as the points where exc
by noitpmeder 5y ago
I totally get these issues, and one definitely should be aware of them when designing a system. It just feels a bit weird to treat these as the points where exceptions emerge and not the parsing of input data.
Could totally be an artifact of the example that was chosen to prove a point, it's just what jumped out at me.
- unrealhoang 5y agoUsually in Rust, parsing would never cause panic (or your parsing library is very wrong), parser will just return error for unparsable input.
- berkes 5y ago> It just feels a bit weird to treat these as the points where exceptions emerge and not the parsing of input data. I understand this. It does make sense when seen as an artifact of the educational nature, though. If the article wanted to explain about exceptions in the parser, the author had to explain the domain as well. Whereas we all are familiar with the exceptions in the file-io-domain already.