niva Help

Variables

There are no special keyword to declare an immutable variable:

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

But there is "mut" for mutable

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

Explicit type declaration:

name::String = "Alice"
Last modified: 20 October 2024