mitranim/jisp

Smarter returnification of conditional branches

Opened this issue · 0 comments

Conditionals like (if), (switch), (try) return their resolved value by assigning it to a reference variable in each branch of execution, and putting this variable after the form. When such a form comes last in a function, we should returnify each branch (prepend a return to the last expression) instead of referencing it and returning the reference.