jakt
jakt copied to clipboard
`if foo() is Some(x)` runs foo() twice
The codegen for an if like:
if foo() is Some(x) { ... }
Will run foo()
twice, causing the side effects it causes twice. We should only run the expression once in the codegen.
cc @fahrradflucht