Skip to main content
0

Everything is an expression

In Rust a function body, an if and even a loop can produce a value. Once you see that, functions and control flow become short and clear.