diff options
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 --> |