Understanding variables in V
A variable, by definition, holds a value or reference to another variable. Generally, a variable is identified by a name. In fact, when a variable is declared, it is given a meaningful name that generally reflects the value held by it. A variable declaration is a typical V statement in which you assign a variable with an initial value. This is often termed as defining a variable or declaring a variable. A variable in V can be assigned with any value, including values in the form of primitive data types, complex data types such as a struct, or they can be assigned with anonymous functions. We will cover anonymous functions in Chapter 7, Functions, and structs in Chapter 8, Structs.
A variable, when declared, is immutable by default. An immutable variable indicates that the value can be assigned only once during its declaration and cannot be updated after it has been declared. V facilitates the declaration of mutable variables with the help of the mut
...