diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-24 06:00:49 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-24 06:00:49 +0200 |
commit | daa5602d2563d9c8f0b9c7685be70525e58ef682 (patch) | |
tree | 0f10836e466233f0915cdb4b528caede3e0637fe | |
parent | d5749a39427bf5a0544f3f530cefc0e2aafded41 (diff) |
Add a clarification that ‘…’ is prefered *syntax*
-rw-r--r-- | README | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |