summaryrefslogtreecommitdiff
path: root/docs/type_system/result.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-05-08 10:03:05 -0400
committernodist <kevin.comas.git@gmail.com>2026-05-08 10:03:05 -0400
commitdda8ef8f15662e7621251148eb1b1da7a22f199b (patch)
treee19492b2f5ac6710e20c53b09d64ce4e4aec7a3e /docs/type_system/result.md
parentf00fe3aaca06fb652ae51f44ce82289a4c3ccd5b (diff)
examples with unqiue and operators
Diffstat (limited to 'docs/type_system/result.md')
-rw-r--r--docs/type_system/result.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/type_system/result.md b/docs/type_system/result.md
new file mode 100644
index 0000000..e33f04b
--- /dev/null
+++ b/docs/type_system/result.md
@@ -0,0 +1,37 @@
+# Result
+
+---
+
+A 128bit value error pair, cannot be stored.
+
+```text
+Result[TYPE]
+```
+
+# Default
+
+```text
+x : // something that returns a result
+// x is the value from the result
+```
+
+If the result is an error, an error is thrown
+
+# Matching
+
+```text
+# ... {
+ .ok { arg; ... }[arg]
+ .error { arg; ... }[arg]
+}
+```
+
+## .ok
+
+## .error
+
+# Return
+
+## \`ok
+
+## \`error