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.dev17 July 2025Yeah, talking about Rust I guess there's let x = match { None => return y, ... };11
metame メタミ@metameeee.bsky.social17 July 2025Also .unwrap_or, .unwrap_or_else, .or and .or_else All depends on what you need1
maxrn@maxrn.devBut in this case I would need to unwrap opt again before using it18/7/25, 8:05 am·0 reposts·1 like