From 521c3c9bad5ad91a085e655d41e73acc1cd68cbc Mon Sep 17 00:00:00 2001 From: zongor Date: Sun, 5 Jan 2025 17:02:13 -0500 Subject: [PATCH] get rid of null --- docs/SPECIFICATION.MD | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/SPECIFICATION.MD b/docs/SPECIFICATION.MD index 84b6f1f..0e14a5e 100644 --- a/docs/SPECIFICATION.MD +++ b/docs/SPECIFICATION.MD @@ -76,21 +76,9 @@ multiline literal string (also used for string interpolation like in JS) Also follows the style boolean 'c' rules of nonzero / zero, but the compiler will make fun of you -## null values - -``` -let a:i8 = 3 -let b:i8 - -let x:i8 = a -let y:i8 = b ?? 1 - -stdout.write("%d%d\n", x, y) ! outputs 3, 1 -``` - ## error -error is a type which describes an error that occurred, it is similar to the Go programming language and is returned as a monad like the maybe monad above and is unwrapped in a similar way. You could also think of it as +error is a type which describes an error that occurred, it is similar to the Go programming language and is returned as a monad like the maybe monad above and is unwrapped in a similar way. You could also think of it as every variable being able to have "the type" and also "error" as a possible value. ``` let error = %"something borked"