Skip to content

Commit

Permalink
Add "array expression" and "record expression" to style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Apr 11, 2021
1 parent 189fe8f commit 97e5819
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions styleguide.md
Expand Up @@ -97,11 +97,13 @@ Appearance | LaTeX source | Comment
--- | --- | ---
`if`-expression | `\lstinline!if!-expression` | Generic language concept
parameter-expression | `parameter-expression` | Expression with parameter variability
`Real` expression | `\lstinline!Real! expression` | An expression of type `Real`
`Real` expression | `\lstinline!Real! expression` | Expression of type `Real`
array expression | `array expression` | Expression of array type
record expression | `record expression` | Expression of record type
`y` expression | `\lstinline!y! expression` | Expression for something named `y`
`convertElement` call | `\lstinline!convertElement! call` | A call expression with callee `convertElement`

In particular, avoid other constructs with _expression_ than the variants above.
In particular, avoid other combinations of inline code and _expression_ than the variants above.
For other needs, try to find a formulation not based on _expression_ to avoid misinterpretations according to the variants above.
For example, instead of saying "… can be dependent on class variables using the `DynamicSelect` expression", just say "… can be dependent on class variables using `DynamicSelect`".

Expand Down

0 comments on commit 97e5819

Please sign in to comment.