Assignment Operator
Basic Assignment
int32:x = 42; // typed declaration with assignment
x = 100; // reassignment
Discard Assignment
_ = some_function(); // discard Result — acknowledges unused return
This is one way to handle nodiscard Results. See also drop and raw.
Compound Assignment
See arithmetic.md for +=, -=, *=, /=, %=.
See bitwise.md for <<=, >>=.
Fixed Values
fixed int32:MAX = 100; // Nitpick's const (use 'fixed', not 'const')
const is reserved for extern blocks. Use fixed for Nitpick constants.
Note: fixed is specified in the language but has limited compiler test coverage.
Compute in a variable first, then assign to fixed if needed.