Module show_notes::e012 [] [src]

I'm not familiar with that expression

Notes

Rust is an expression-oriented language. What does that mean, and how does it play out in Rust? We look at if and match blocks, discuss looping constructs, and examine functions, and then widen out to discuss how having an expression-oriented language can change the way we think about programming.

Sponsors

Become a sponsor

Contact

Functions

functions_are_expressions

Functions are expressions, and so are their contents.

if_blocks_are_expressions

Like functions, if blocks are expressions.

match_blocks_are_expressions

Match blocks are also expressions.

ordinary_blocks_are_expressions

Block blocks are also expressions!