3 ms·
My example shows that recursion is a design choice. It doesn't "just happen to you". But you are right. You can implement recursion properly by just implementi
by auggierose 5y ago
My example shows that recursion is a design choice. It doesn't "just happen to you".
But you are right. You can implement recursion properly by just implementing function calls properly, and making sure that you are not limited by an arbitrary and usually small stack size. It's just that if you don't have recursion, you usually don't have a need for deep stack sizes either.
By the way, citing tropes like "leaky abstraction" and "Dunning and Kruger" is exactly the kind of lazy thinking I am talking about.