Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeedev committed Dec 25, 2024
1 parent dc5e690 commit 6b248c2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions language_syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ for i <= 100 {
}
println(sum); // > 5050
```
## (TODO) References and heap
<!-- TODO -->
## References and heap
Here is an example of how to get change variables value by getting its' reference:
```c++
Expand Down Expand Up @@ -423,3 +423,16 @@ foo();
```

Same example applies to once variables when they are read, this means that you can still modify them multiple times before it dies.

<!-- TODO -->
## Enums (`enum`)

```c++
State :: enum {
READY, // 0
STOPPED, // 1
ERROR // 2
}


```

0 comments on commit 6b248c2

Please sign in to comment.