From 7964cf08ac807ac9e7b6d579a25321a23adc9139 Mon Sep 17 00:00:00 2001 From: nodist Date: Tue, 16 Jun 2026 12:42:41 -0400 Subject: new layout by dependecy graph --- docs/type_system/shared.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/type_system/shared.md') 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 } -- cgit v1.2.3