8 ms·
Great article by a rust legend. Two points: - The let-else syntax (Relatively new), anecdotally, removes many of my cases for unwrap. (But this may not apply
by the__alchemist 1y ago
Great article by a rust legend. Two points:
- The let-else syntax (Relatively new), anecdotally, removes many of my cases for unwrap. (But this may not apply to how others use it)
- Unwrap's fine if it makes the code easier-to-read and you know it won't panic for a reason the compiler doesn't know about.