Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Grouped expressions

GroupedExpression   =   "(" , Expression , ")"
                    ;

A grouped expression can contain an expression with a block, which allows it to be used as an operand:

global G: u8;

fn main() {
    let x: u8 = ({
        yield G;
    }) + 1;
}