blob: e8998578fb9faa6a7c8442d78a3dfcb923df267a (
plain)
1
2
3
4
5
6
7
8
9
|
[[Rust]]
[[A scope block is an expression]]
[[How to return from a function]]
[[Adding a semicolon to the end of a line turns it into a statement]]
[[It is not possible to do a chain assignment]]
[[An empty tuple is called a unit]]
An expression returns something, ie `1 + 2` returns `3`.
A statement on the other hand does not return anything: as assignment is a statement. It equals to the unit!
|