aboutsummaryrefslogtreecommitdiff
path: root/BASIC.md
diff options
context:
space:
mode:
authorJJ2023-07-11 01:01:21 +0000
committerJJ2023-07-11 01:31:33 +0000
commita7a5119b307498a5d04f0c2640f1bed48d19fd3f (patch)
treeced682b23f1e9a76a26630f2c24e6a4541c85efa /BASIC.md
parentfbe825e6d74a08b1a4ffada6c9a0934d7fb0d19f (diff)
thoughts on error handling and option and result libraries
Diffstat (limited to 'BASIC.md')
-rw-r--r--BASIC.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/BASIC.md b/BASIC.md
index aa984ac..47c13c8 100644
--- a/BASIC.md
+++ b/BASIC.md
@@ -21,6 +21,7 @@ The type system is comprehensive, and complex enough to [warrant its own documen
Functions are declared with the `func` keyword, followed by the function name, followed by an (optional) list of parameters surrounded in parenthesis, followed by a type annotation. Functions may be prefixed with one or more of the following modifiers:
- `pub`: exports the function for use by external files
- `pure`: denotes a function as a "pure function", lacking side effects, i.e. IO or nondeterminism or parameter mutability
+- `yeet`: denotes a function as a "throwing function", meaning it may raise exceptions.
- `async`: marks a function as asynchronous which may only be called by other asynchronous functions or with the `await` keyword
<!-- - `total`: idk -->
<!-- - more?? converter?? idk todo -->