top | item 33726753

(no title)

Casperin | 3 years ago

Yes. It requires that `if else` can be used as expressions, which for some reason in most languages that can not.

In the beginning of doing Rust I was missing the ternary operator, but now I couldn't care less.

    foo = if y { x } else { y }
Works well :-)

discuss

order

No comments yet.