mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
Added string concatenation
This commit is contained in:
@@ -10,8 +10,8 @@ DONE: while-then
|
||||
DONE: for-then
|
||||
DONE: break and continue statements
|
||||
DONE: truthiness rethink
|
||||
DONE: string concat with the + operator
|
||||
|
||||
TODO: string concat with the + operator
|
||||
TODO: increment & decrement operators
|
||||
TODO: a = b = c = 1;
|
||||
TODO: are compounds shallow or deep copies?
|
||||
|
||||
@@ -357,7 +357,7 @@ export hello as world;
|
||||
|
||||
## String
|
||||
|
||||
Strings are a series of characters, and are created by surrounding said characters with a pair of double quotation marks `"`. Strings cannot exceed 4096 bytes in length.
|
||||
Strings are a series of characters, and are created by surrounding said characters with a pair of double quotation marks `"`. Strings cannot exceed 4096 bytes in length (this amount can be tweaked in the source).
|
||||
|
||||
```
|
||||
var greeting: string = "Hello world";
|
||||
|
||||
Reference in New Issue
Block a user