# Recursion in Julia — bad idea?

**URL:** <https://discourse.julialang.org/t/recursion-in-julia-bad-idea/99304>\
**Category:** Performance\
**Tags:** recursion\
**Created:** [May 23, 2023, 9:16pm UTC](https://discourse.julialang.org/t/recursion-in-julia-bad-idea/99304 "2023-05-23T21:16:58Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![frylock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/frylock/32/50213_2.png) [@frylock](https://discourse.julialang.org/u/frylock)\
**Post date:** [May 24, 2023, 1:00pm UTC](https://discourse.julialang.org/t/recursion-in-julia-bad-idea/99304/13 "2023-05-24T13:00:26Z")

</div>

I solved some Project Euler stuff using Scheme, and started to like tail recursion, so when I found out that Julia [doesn’t (yet?) support tail recursion](https://discourse.julialang.org/t/does-julia-have-tail-call-optimization/64101), I was a little bummed. Mind you, I wasn’t bummed because lack of TCO was hurting my ability to work, or that I had run into a limit somewhere … I just missed it.

I think I just got allergic to `for` loops, and tried to solve everything in a Scheme-y way in any language that would allow it. Julia is the first (non-`C`) language I have used on a regular basis where `for` loops are not a bad idea.

Edit, and unrelated, but [Project Euler](https://projecteuler.net/) is a lot of fun. I might try it again with Julia.

---

_[View the full topic](https://discourse.julialang.org/t/recursion-in-julia-bad-idea/99304)._
