Expression vs Statement in Rust
Let’s see the difference between them via example.
An expression may have two roles: it always produces a value, and it may have effects (otherwise known as “side effects”). An expression evaluates to a value, and has effects during evaluation. Many expressions contain sub-expressions (operands)…