DEV Community

Discussion on: Do you even recurse?... And if you do, do you do it safely?

Collapse
 
pichardoj profile image
J. Pichardo

You are absolutely correct, closures can lead to memory leaks, specially in this type of situation. That's why it should be used carefully and only when necesary, being that as it may, I would have seriosly loved for TCO to have been implemented.