From acd8f3d99eefd1d7eba2bed06de826486198c88e Mon Sep 17 00:00:00 2001 From: Chris G Date: Sat, 25 Nov 2023 12:16:32 +0100 Subject: [PATCH] add semantic naming to variables (#472) * add semantic naming to variables * Update README.md change examples and shorten description of semantic naming * update hungarian case and one example more * Update README.md --------- Co-authored-by: Lu Wilson --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 5dce633f3..a794f3949 100644 --- a/README.md +++ b/README.md @@ -623,6 +623,22 @@ funct App() => { } ``` +## Semantic naming + +DreamBerd 3 supports semantic naming. + +```java +const const sName = "Lu"! +const const iAge = 29! +const const bHappy = true! +``` + +**New for 2023:** You can now make globals. + +```java +const const g_fScore = 4.5! +``` + ## Asynchronous Functions In most languages, it's hard to get asynchronous functions to synchronise with each other. In DreamBerd 3, it's easy: Asynchronous functions take turns running lines of code.