summaryrefslogtreecommitdiff
path: root/docs/type_system/shared.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-06-16 12:42:41 -0400
committernodist <kevin.comas.git@gmail.com>2026-06-16 12:42:41 -0400
commit7964cf08ac807ac9e7b6d579a25321a23adc9139 (patch)
tree807799f7c4dea85fca31e3532b0e06f71f0f32ea /docs/type_system/shared.md
parente99f60fe8cdef48aad9aa6a1b360b600443ac659 (diff)
new layout by dependecy graph
Diffstat (limited to 'docs/type_system/shared.md')
-rw-r--r--docs/type_system/shared.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/type_system/shared.md b/docs/type_system/shared.md
index d1d3f07..9ddef26 100644
--- a/docs/type_system/shared.md
+++ b/docs/type_system/shared.md
@@ -5,7 +5,7 @@
Hold multiple references to the same object
```text
-Shared[[] Type]
+`shared
```
# Garbage Collection
@@ -15,11 +15,11 @@ A tracing mark and sweep garbage collector is used
# Mutating
```text
-x : Shared[Array] $ (1; 2; 3)
+x : `shared Array $ (1; 2; 3)
^ x {[y]
y `push 4
}
-`log x // Shared[Array[I64]] $ (1; 2; 3; 4)
+`log x // `shared Array[I64] $ (1; 2; 3; 4)
```
# Operators
@@ -31,8 +31,8 @@ x : Shared[Array] $ (1; 2; 3)
### Example sharing data between two shared objects
```text
-x : Shared $ 1
-y : Shared $ 0
+x : `shared 1
+y : `shared 0
z : ^ x {[x] x }
^ y {[y] y : z }