Difference between revisions of "Conventions for parameters and operands"
Line 9: | Line 9: | ||
:<code>s, t</code>: Text values. | :<code>s, t</code>: Text values. | ||
:<code>c</code>: Character (a text value containing a single character). | :<code>c</code>: Character (a text value containing a single character). | ||
− | :<code> | + | :<code>I, J, K</code>: The identifier of an index variable. |
− | :<code> | + | :<code>V, W</code>: The identifier of a variable. |
:<code>a, b</code>: A Boolean value or expression. | :<code>a, b</code>: A Boolean value or expression. | ||
:<code>e</code>: An expression. | :<code>e</code>: An expression. | ||
+ | |||
+ | Note that the [[Objects_and_Values#Value_semantics_vs_Alias_semantics|common stylistic convention]] uses capital names when it identifies an Object (alias semantics) and lower case names when it identifies a value (value semantics). Hence, index and variable parameter names are capitalized, other parameter names are lower case. | ||
==See Also== | ==See Also== |
Latest revision as of 20:55, 5 February 2025
The following conventions are commonly used for representing parameters and operands of functions:
x, y, z
: A number that may be integer or decimal.d
: A number in degrees.p, q
: A probability between 0 and 1.n, m
: An integer number.s, t
: Text values.c
: Character (a text value containing a single character).I, J, K
: The identifier of an index variable.V, W
: The identifier of a variable.a, b
: A Boolean value or expression.e
: An expression.
Note that the common stylistic convention uses capital names when it identifies an Object (alias semantics) and lower case names when it identifies a value (value semantics). Hence, index and variable parameter names are capitalized, other parameter names are lower case.
See Also
Comments
Enable comment auto-refresher