Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

tail expression

A block's last expression, with no semicolon, which becomes its value.

The tail expression is the final expression in a block without a trailing semicolon; it is the block's value.

Examples

  • In fn pay(hours: u32, rate: u32) -> u32 { hours * rate }, hours * rate is the tail expression; adding a ; after it fails with E0308.

Read the full section →