Recursion in Julia — bad idea?

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, 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 is a lot of fun. I might try it again with Julia.

1 Like