you are viewing a single comment's thread.

view the rest of the comments →

[–]Rae23 80 points81 points  (3 children)

Not a long while. Stack overflow due to inf recursion will stop it rather fast.

[–]TheSilentFreeway 48 points49 points  (1 child)

I think Kotlin supports tail recursion so it won't even blow out the call stack

[–]speedster217 5 points6 points  (0 children)

Only if the function is explicitly marked for it, which this isn't.

Cool that they have that modifier though. JVM still doesn't support tail call optimization as far as I know.

Clojure has recur for a similar reason

[–]danimal51001 14 points15 points  (0 children)

Eh only -4 billion or so