News for hackers. Stuff that matters.
Re:Rust for JavaScript Developers – Functions and Control Flow by GrayShade on Monday July 06, 2020 @10:25AM (#23748218)
It's probably not the most idiomatic thing, but in Rust you can write:

    let foo = match () {
        _ if x <= 0 => 0,
        _ if something_else > 50 => 9000,
        _ => 42,
    };

There are no comments on this comment yet.