Post

let 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)

Yeah, talking about Rust I guess there's let x = match { None => return y, ... };

0 reposts1 like