From 1e3fb8a2c0cca385d65c52679411b118b5fb4641 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Nov 2024 16:18:21 -0500 Subject: Rename "NULL" to "NONE" --- docs/optionals.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/optionals.md') diff --git a/docs/optionals.md b/docs/optionals.md index bb2aecfd..584625fe 100644 --- a/docs/optionals.md +++ b/docs/optionals.md @@ -63,7 +63,7 @@ x = !Int ## Type Inference -For convenience, null values can also be written as `NULL` for any type in +For convenience, null values can also be written as `NONE` for any type in situations where the compiler knows what type of optional value is expected: - When assigning to a variable that has already been declared as optional. @@ -74,12 +74,12 @@ Here are some examples: ```tomo x := 5? -x = NULL +x = NONE func doop(arg:Int?)->Text?: - return NULL + return NONE -doop(NULL) +doop(NONE) ``` Non-null values can also be automatically promoted to optional values without -- cgit v1.2.3