summaryrefslogtreecommitdiff
path: root/docs/type_system
diff options
context:
space:
mode:
Diffstat (limited to 'docs/type_system')
-rw-r--r--docs/type_system/function.md2
-rw-r--r--docs/type_system/lock.md6
-rw-r--r--docs/type_system/shared.md20
3 files changed, 24 insertions, 4 deletions
diff --git a/docs/type_system/function.md b/docs/type_system/function.md
index d8244a9..814e3c3 100644
--- a/docs/type_system/function.md
+++ b/docs/type_system/function.md
@@ -9,7 +9,7 @@ CLASS : INCOMPLETE | NATIVE | TASK | PROCESS | GENERATOR | ITERATOR | CLOSURE |
FLAGS : INVOCATION | CLASS
-Function[[FLAGS] STATE; List; RETURN_TYPE; Collection[TYPE.SYMBOL]]
+Function[[FLAGS]; STATE; List; RETURN_TYPE; Collection[TYPE.SYMBOL]]
```
# Alias
diff --git a/docs/type_system/lock.md b/docs/type_system/lock.md
index 913a532..3b7d90a 100644
--- a/docs/type_system/lock.md
+++ b/docs/type_system/lock.md
@@ -2,8 +2,8 @@
---
-Prevent access to a parent while children are modifiable
-
```text
-Lock[[] Name[...]; TYPE]
+Lock[[] TARGET]
```
+
+Prevent access to `TARGET` until a mutation occurs
diff --git a/docs/type_system/shared.md b/docs/type_system/shared.md
index 2af408d..d1d3f07 100644
--- a/docs/type_system/shared.md
+++ b/docs/type_system/shared.md
@@ -21,3 +21,23 @@ x : Shared[Array] $ (1; 2; 3)
}
`log x // Shared[Array[I64]] $ (1; 2; 3; 4)
```
+
+# Operators
+
+## ``get`
+
+## ``set`
+
+### Example sharing data between two shared objects
+
+```text
+x : Shared $ 1
+y : Shared $ 0
+
+z : ^ x {[x] x }
+^ y {[y] y : z }
+// same as above
+y `set `get x
+```
+
+