Language

Variables

A type, a name, and is. Alana refuses to guess what you meant. That is the whole slogan.

define

A new binding. She writes it down and does not forget — until the scope ends.

define num x is 10;
define str language is "Alana";
define boolean active is true;

Keyword: define.

new

Reserve the name, fill it in later. An empty chair at the table.

define num userValue is new;
define boolean numberParsed is false;

Keyword: new. Building an object from a class is the other one: newobj.

redefine

A new value for a name that already exists. Also works on an array index, if you are feeling precise.

redefine x is x + 1;
redefine history[0] is 100;

Keyword: redefine.

is

Assignment only. Comparing two values is sameas. Using is for equality is how I know you are new. Welcome.

You cannot change a variable’s type after define. She committed. Parse into a differently typed slot instead.