Assignment

Last updated 5 months ago

Assignments adopts the colon-equal (:=) convention

local := "bazz" # Assignment to a local variable
@instance := 155 # Assignment to an instance variable

LinCAS also provides some sintax sugar for assignments and operators to make the code shorter and comfortable:

a += 1 # Same as a := a + 1
‚Äč
# The above code is valid for the following opertors:
# + - * / \ ** %