Thread with 3 posts

jump to expanded post

rust's

let Some(unwrapped) = thing_that_might_fail() else {
    return Err("thing went wrong");
};

is the best thing since sliced bread i miss it dearly every time i write c or c++

Open thread at this post

‪what's even the point of having optionals in c++ if the only realistic way to use them involves the same ub-hazard code patterns as in c. every single rust feature that is shared with c++ is just straight up more useful and more usable and less pointless in its rust incarnation‬

Open thread at this post