From a7a5119b307498a5d04f0c2640f1bed48d19fd3f Mon Sep 17 00:00:00 2001 From: JJ Date: Mon, 10 Jul 2023 18:01:21 -0700 Subject: thoughts on error handling and option and result libraries --- BASIC.md | 1 + 1 file changed, 1 insertion(+) (limited to 'BASIC.md') 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 -- cgit v1.2.3-70-g09d2