kast 0.1.0

kast programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std;

let test = fn (x :: int32) {
	let result :: Result[ok: string, error: int32] =
		try[ok: string, error: int32] (
			if x == 0 then
				"hello"
			else
				throw[int32] x
		);
	let value :: string = result catch e { dbg e; "thrown" };
	print <| value;
};

test 1;
test 0;