Closed ajpal closed 9 months ago
if x then y else z is the same as switch x (cons z (cons y nil)) (note the switched branches) We've made this mistake a few times and I think fixed it on various branches, but we should just merge the change to main.
if x then y else z
switch x (cons z (cons y nil))
Actually the 3/4 optimizations are also wrong
if x then y else z
is the same asswitch x (cons z (cons y nil))
(note the switched branches) We've made this mistake a few times and I think fixed it on various branches, but we should just merge the change to main.