TritonVM / tasm-lang

Writing tasm with Rust syntax
15 stars 2 forks source link

`match` expression tracking issue #60

Closed Sword-Smith closed 5 months ago

Sword-Smith commented 5 months ago

We're adding support match expressions that return values such that they can be used in bindings. This will allow us to write

let a: u32 = match an_enum {
    Enum::A(x) => {
        let val: u32 = x * 2;
        val
    }
    Enum::B(x, y) => {
        ...
    }
};

This work currently takes place on the proof-item branch.

Sword-Smith commented 5 months ago

Completed at b1caa0a63afc51c150f0e37925fa8eaa043e8851