Hello Scott,
Thank you for your interest in Formulaic.
Variable names follow the same rules as for the "C" programming
language: They can be made up of one or more of "a"-"z", "A"-"Z",
"0"-"9" and "_", but must use an alphabetic character at the
beginning. Examples of valid identifiers would be "distance",
"food_source_123" or "Speed_mph". If a variable name starts with a
lower case letter, the value is local to the equation in which it is
used. If it starts with an upper case letter, the value is shared
amongst all equations that use the same variable name.
Constants follow the same rules as variables, except that they use
only upper case letters. When Formulaic analyses an equation, and
finds "E" surrounded by spaces, it will discover that "E" is one of
the built-in constants, and use its value. Because constants take
precedence over variables, you cannot define a variable with the same
name as one of the constants. You can delete constants, but if you
delete the built-in constant "E", it will be recreated the next time
you launch Formulaic.
Equation names can use letters (upper and lower), digits and spaces.
We implemented the restriction because there were many possible uses
for the name of an equation beyond just a label in the app. For
example, the import and export by email features use the equation
name, and we wanted to rule out the possibility of something breaking
because Formulaic encountered something in an equation name that we
hadn't anticipated.
Kind regards,
Hoy Moon