From 42defff7d6c149e4a8e65f80109dc9cfd69985de Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 2 Apr 2026 21:19:36 +0300 Subject: [PATCH] Update spec --- spec.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec.txt b/spec.txt index 2157717..3f72969 100644 --- a/spec.txt +++ b/spec.txt @@ -128,6 +128,9 @@ The only implicit casting allowed is T mut* -> T* (maybe?) Any integer/floating-point types can be cast to each other. Any pointer types can be cast to each other (TODO: alignment? UB or safe fallback? Probably UB.) +Ternary if operator: + if condition then true_value else false_value + Address: &x // returns *T, fails if x is a const variable &mut x // returns *mut T, fails if x is non-mut variable