← Back to context

Comment by AlienRobot

9 hours ago

This is one of the things I like about Rust. You can have both.

    let foo = {
        if bar {
            1
        } else if baz {
            2
        } else {
            3
        }
    };

Unfortunately not all languages are Rust.