Skip to main content

MAX_EXPR_DEPTH

Constant MAX_EXPR_DEPTH 

Source
pub const MAX_EXPR_DEPTH: usize = 256;
Expand description

Maximum expression nesting before the parser refuses.

Chosen well above anything human-written (blue’s own spec/*.b peaks in single digits) and far below the measured overflow point, so the bound is hit as a typed Err long before the stack is at risk. A limit that is merely near the crash point is not a safety bound; it is a race.