maxrn@maxrn.dev17 July 2025let Some(x) = ... else { return y; } is the most confusing and disgusting construct ever. And I hate that there's no better option (that I'm aware of)11
metame メタミ@metameeee.bsky.social17 July 2025> there's no better option it depends?? (assuming you're talking about rust)1
maxrn@maxrn.devYeah, talking about Rust I guess there's let x = match { None => return y, ... };17/7/25, 8:46 pm·0 reposts·1 like
metame メタミ@metameeee.bsky.social17 July 2025Also .unwrap_or, .unwrap_or_else, .or and .or_else All depends on what you need1