Added ternary operator

This commit is contained in:
2023-01-14 21:30:39 +11:00
committed by GitHub
parent 6dfb239106
commit cc9c219588
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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.