News for hackers. Stuff that matters.
Re:Using unwrap() in Rust is okay by ithkuil on Monday August 08, 2022 @12:20PM (#32387511)
A parser library can return an error when the input is wrong. It doesn't necessarily mean the app is in an inconsistent state when that happens; it all depends on what the application does. It follows that aborting is often a sensible decision in application code and rarely in library code.
Re:Using unwrap() in Rust is okay by arcticbull on Monday August 08, 2022 @01:18PM (#32388335)
I would personally consider parsers as part of I/O, but point taken.