jisp icon indicating copy to clipboard operation
jisp copied to clipboard

Smarter returnification of conditional branches

Open mitranim opened this issue 11 years ago • 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.

mitranim avatar Jul 12 '14 09:07 mitranim