98d3344912
Introduce a TCO pass to the compiler and modify the VM to handle tail calls. This allows for deep recursion without stack overflow.
9 lines
127 B
Plaintext
9 lines
127 B
Plaintext
(do
|
|
(def count_down (fn [n]
|
|
(if (< n 1)
|
|
"done"
|
|
(count_down (- n 1)))))
|
|
|
|
(count_down 1000000)
|
|
)
|