From daa5602d2563d9c8f0b9c7685be70525e58ef682 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 24 Jun 2024 06:00:49 +0200 Subject: Add a clarification that ‘…’ is prefered *syntax* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 … + 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 -- cgit v1.2.3