Skip to content

Language Reference

This page summarizes the main language features. For precise type semantics, evaluation order, and runtime failure conditions, consult the language reference (primary source).

The Types page summarizes integer and floating-point types, booleans, strings, arrays, user-defined types, and their basic rules.

See Operators for arithmetic, comparisons, logical and bitwise operations, evaluation order, precedence, and runtime failures.

See Numeric Conversions for exact value-preserving conversion, rounding, saturation, and failure conditions.

See Strings for UTF-8, concatenation, byte lengths, escapes, equality, and immutability.

The Variables and Bindings page covers declarations, reassignment with mut, type inference with infer, and block scope.

The Functions page covers definitions, parameters, return values, generics, and program entrypoints.

The Arrays page covers fixed-length and dynamic arrays, copying, updates, iteration, and limitations.

See Product Types for type, field defaults, construction, and ..base update expressions.

See Enums and Match for enum variants with payloads, match statements and expressions, guards, and exhaustiveness.

See Control Flow for conditional statements, loops, break and continue, and branching on enum variants.

See Modules for file imports, pub visibility, namespaces, and dependency rules.

  • Explicit numeric conversions; no implicit numeric conversions.
  • Integer overflow and out-of-bounds array access cause runtime failures.

Recursion, string indexing, dynamic array growth, generic Option/Result, and file/network I/O are not implemented. Refer to the primary sources for the supported features, limitations, and planned work.