diff options
author | JJ | 2023-07-11 01:01:21 +0000 |
---|---|---|
committer | JJ | 2023-07-11 01:31:33 +0000 |
commit | a7a5119b307498a5d04f0c2640f1bed48d19fd3f (patch) | |
tree | ced682b23f1e9a76a26630f2c24e6a4541c85efa /BASIC.md | |
parent | fbe825e6d74a08b1a4ffada6c9a0934d7fb0d19f (diff) |
thoughts on error handling and option and result libraries
Diffstat (limited to 'BASIC.md')
-rw-r--r-- | BASIC.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 --> |