Closed Sword-Smith closed 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) => { ... } };
panic
assert
ProofItem
panic!
This work currently takes place on the proof-item branch.
proof-item
Completed at b1caa0a63afc51c150f0e37925fa8eaa043e8851
We're adding support match expressions that return values such that they can be used in bindings. This will allow us to write
panic
andassert
to be the returned value from an arm-bodyProofItem
panic!
actually crashes VM executionThis work currently takes place on the
proof-item
branch.