Special Notations in Naming Variables

Revision as of 07:37, 14 June 2016 by Joseph (talk | contribs) (Naming Variables with Spaces)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In z^3, variable can be declared and used in very flexible ways. All normal naming conventions used in common languages like Javascript, Java, C, etc. are followed. The names are case sensitive, though the editor gives special consideration to upper-cased internal Z functions to aid in typing them.

An interesting way to name variables is to have long names with spaces in them. To denote a long variable, simply prefix the name with ##.

For example:

    1. Weight of An Elephant = 10000kg;


    1. Weight of An Elephant<+>1000;

11000kg

Such long names are internally converted to a name that does not have spaces. The variable can be referred both ways.

For example, in this case, "##Weight of An Elephant" and "WeightofAnElephant" both refer to the same variable.