Skip to content

Version 0.1.4

Compare
Choose a tag to compare
@Samathingamajig Samathingamajig released this 22 Feb 07:43
· 13 commits to main since this release

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 named variableName and gives it the value of expression when evaluated
  • let variableName This creates a variable named variableName and gives it the value of null when evaluated
  • variableName = expression This modifies the existing variable named variableName to have the value of expression when evalulated. If variableName is not a defined variable in the current scope, then it throws a RuntimeError
  • variableName cannot be a keyword a.k.a. reserved word or a Global Constant Variable