News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by v_lisivka on Wednesday January 09, 2019 @08:18PM (#18870696)
I just realized that I have bug in my GPS driver. It operates on ASCII data, so [] operator is safe, BUT data can be corrupted (low chance, but non-zero), so it can form valid multibyte character, so my code will panic on it, trying to parse and validate NMEA message.
Re:Thoughts on Rust, a few thousand lines in by UncleEntity on Wednesday January 09, 2019 @09:27PM (#18871024)
Panicking on parsing corrupted data seem like a feature to me...

It's like the default rule in a lexer, if it ever gets to it then it's an unrecognized character and lexing stops so error handling can proceed.

--edit--

Which I now realize was probably your point.