From bb912b081ed339e4a5419bd3d2ffd7465f2f72d3 Mon Sep 17 00:00:00 2001 From: nodist Date: Mon, 27 Jul 2026 17:17:56 -0400 Subject: bottom up redesign --- docs/type_system/shared.md | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 docs/type_system/shared.md (limited to 'docs/type_system/shared.md') diff --git a/docs/type_system/shared.md b/docs/type_system/shared.md deleted file mode 100644 index dcb31d5..0000000 --- a/docs/type_system/shared.md +++ /dev/null @@ -1,43 +0,0 @@ -# Shared - ---- - -Hold multiple references to the same object - -```text -%shared -``` - -# Garbage Collection - -A tracing mark and sweep garbage collector is used - -# Mutating - -```text -x : %shared Array $ (1; 2; 3) -^ x {[y] - y `push 4 -} -`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 -``` - - -- cgit v1.2.3