Is it possible to have a better .expect() function that accept formatted literials?

If we were going to do something for this, I think it's this: "else match" Extending Conditional Syntax - #8 by scottmcm

But it would need someone to analyze the frequency and prevalence at which that would both be applicable and not just be .unwrap_or_else(|e| panic!("error: {e:?}")).

3 Likes