Version 0.1.4
There is now a difference between saying "Hey, this variable exists now (with optional starting value)" and "Hey, modify this variable which already exists"
let variableName = expression
This creates a variable namedvariableName
and gives it the value ofexpression
when evaluatedlet variableName
This creates a variable namedvariableName
and gives it the value ofnull
when evaluatedvariableName = expression
This modifies the existing variable namedvariableName
to have the value ofexpression
when evalulated. IfvariableName
is not a defined variable in the current scope, then it throws aRuntimeError
variableName
cannot be a keyword a.k.a. reserved word or a Global Constant Variable