mamba 0.3.6

A transpiler which converts Mamba files to Python 3 files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class MyErr(def message: Str): Exception
class MyOtherErr(def message: Str): Exception

def function_may_throw_err() -> Int raise [MyErr] => 10

def g() =>
    def a := function_may_throw_err() handle
        err: MyErr =>
            print("We have a problem: {err.message}.")
            return  # we return, halting execution
        err: MyOtherErr =>
            print("We have another problem: {err.message}.")
            0  # ... or we assign default value 0 to a

    print("a has value {a}.")

g()