Expand description
Compile-time constant evaluation
Evaluates constant expressions at compile time (e.g. const x = 1 + 2).
Functionsยง
- eval_
constant - Evaluate a constant expression at compile time. Returns None if the expression is not constant (contains variables, function calls, etc.).
- is_
constant - Check if an expression is a compile-time constant