New feature (Jan 2022)

Relaxed words in alt/loop conditions

Before this new version, when you need to put more word in the between the parentheses, you have to use a "string", such as for("record in records").

Since this version, you can use something like this for(record in records). There is no check in the words as long as they are valid atoms.

The same thing applies to if

such as if(instanceOf x == XClass)

The following can be an atom:

  1. Number (1, 1.0);

  2. Boolean (true, false);

  3. ID, anything that can be a variable name in Java, such as a1, xyz;

  4. STRING ("hello world")

  5. NIL (null)

  6. Operators (+, -, *, /, ==, &&, ||, new, >, >=, <, <=)

Last updated