DEV Community

Discussion on: Reasons To Use Recursion and How It Works

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️ • Edited

Because again, recursion functions use call stack and the call stack has a limit

I mean, that only applies to poorly designed languages, so it's not something to really worry about

EDIT: And poorly designed code, I should probably add

Collapse
 
manarabdelkarim profile image
Manar Imad

True 👍.. in many languages you can avoid this problem easily ..it seems like I will add writing a post about that to my future plans