aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-24 06:00:49 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-24 06:00:49 +0200
commitdaa5602d2563d9c8f0b9c7685be70525e58ef682 (patch)
tree0f10836e466233f0915cdb4b528caede3e0637fe /README
parentd5749a39427bf5a0544f3f530cefc0e2aafded41 (diff)
Add a clarification that ‘…’ is prefered *syntax*
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 10 insertions, 1 deletions
diff --git a/README b/README
index 48e92ac..514046b 100644
--- a/README
+++ b/README
@@ -72,9 +72,18 @@ The build script also accepts some subcommands. They are as follows:
x: int = 69; /* Declare an integer and set it to 69 */
x: = 69; /* Same as above but infer the type */
x := 69; /* Recommended style when inferring types */
- x: int = …; /* Declare an uninitialized integer (preferred) */
+ x: int = …; /* Declare an uninitialized integer */
x: int = ...; /* Same as above when Unicode is not possible */
+ When declaring an uninitialized variable, the recommended style is to
+ use U+2026 HORIZONTAL ELLIPSIS. If you cannot bind that codepoint to
+ your keyboard, you should investigate the key-remapping faculties of
+ your text editor. For example, (Neo)Vim users may try the following:
+
+ inoremap ... …
+ " or if you don’t like the above…
+ inoremap <C-.> …
+
4. Declaration of constant variables with optional type-inference
including constants of arbitrary precision. The syntax is
intentionally designed to be consistent with mutable variable