From cc9c219588d63716fcabbcd33c4728e60b3c5a16 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sat, 14 Jan 2023 21:30:39 +1100 Subject: [PATCH] Added ternary operator --- quick-start-guide.md | 2 +- roadmap.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quick-start-guide.md b/quick-start-guide.md index a8df369..e29a0cb 100644 --- a/quick-start-guide.md +++ b/quick-start-guide.md @@ -192,7 +192,7 @@ The following mathematical operators are available. A definition is omitted here Likewise, the following logical operators are available (`&&` is more tightly bound than `||` due to historical reasons): ``` -( ) [ ] { } ! != == < > <= >= && || +( ) [ ] { } ! != == < > <= >= && || ?: ``` Other operators used throughout the language are: the assignment, colon, semicolon, comma, dot and rest operators: diff --git a/roadmap.md b/roadmap.md index 4bab65b..f0eb4fc 100644 --- a/roadmap.md +++ b/roadmap.md @@ -24,7 +24,7 @@ Some things I'd like to add in the future include: * A random generation library (numbers, perlin noise, wave function collapse?) * A timer library (under development) * Multiple return values from functions -* Ternary operator +* ~~Ternary operator~~ * interpolated strings Some of these have always been planned, but were sidelined or are incomplete for one reason or another.