myaosato/arrp

dont work well TCO

Closed this issue · 2 comments

I expected catch ReturnFromFunctionError at nearlest try catch statement (in ArrpEvaluator).

However, at first done finally block on all of ArrpFunction.call()

So, the following code dosen't work

(defun! fact (n)
  (if (= n 1)
      (return 1)
      (* (fact (- n 1)) n)))

(fact 10)

This is my misunderstanding.

I notice reason of this.