Constants
Compile-time values with const.
const
const cannot be reassigned and is evaluated at compile time. Unlike let, which creates a runtime binding.
const MAX_LIVES = 3
fn main() {
print(MAX_LIVES)
}const MAX_LIVES = 3
fn main() -> void {
print(MAX_LIVES)
}Output
3