Fork me on GitHub
#xtdb
<
2023-10-19
>
Vincent01:10:38

Hi is there a way to not stackoverflow on recursion? lol 😆

Vincent01:10:50

clearly an issue between keyboard and screen...

tatut04:10:34

recur ?

1
teodorlu06:10:35

As Tatut wrote, you can use recur. If you call yourself normally, you'll add stack frames for each recursive call, and you might get a stack overflow. If you use recur instead, you will not add stack frames. Not obvious to me what this has to do with XTDB. https://clojuredocs.org/clojure.core/recur https://clojure.org/reference/special_forms#recur

raspasov04:10:32

There’s also https://clojuredocs.org/clojure.core/trampoline and the #C053AK3F9 channel 🙂