niva Help

Variables

There are no special keyword to declare an immutable variable:

x = 1 // no val or let x inc echo

But there is "mut" for mutable

mut answer = 31 answer <- 42 // since = already taken u mutate with <- // <- also makes mutations more noticeable

Explicit type declaration:

name::String = "Alice"
Last modified: 22 May 2024