News for hackers. Stuff that matters.
Re:Formatting Is Unreasonably Expensive for Embedded Rust by ComputerGuru on Monday December 09, 2019 @08:21PM (#21748713)
.unwrap() in production code is perfectly normal where the author believes other code constraints outside the scope of the type system prevent it ever having a non-truthy value. Technically the author should have used `.expect(...)` instead with a message but even if the author were to write a `match` instead, the author would have panicked in the _ case. (Think erroneous design assumptions or logical errors.)

There are no comments on this comment yet.