From 97e581980d7f99abc0a09489107fea9cfbdf1813 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Mon, 12 Apr 2021 00:25:39 +0200 Subject: [PATCH] Add "array expression" and "record expression" to style guide --- styleguide.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/styleguide.md b/styleguide.md index 265e97723..a3eda0fc5 100644 --- a/styleguide.md +++ b/styleguide.md @@ -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`".