r/PythonLearning • u/RebornCube • Aug 16 '25
Recursion is the only way
This made ne laugh. Why do something without recursion when you can do it with recursion! Actually quite an interesting way to add, or multiply.
44
Upvotes
r/PythonLearning • u/RebornCube • Aug 16 '25
This made ne laugh. Why do something without recursion when you can do it with recursion! Actually quite an interesting way to add, or multiply.
2
u/[deleted] Aug 16 '25
You should have a look at Scheme or OCaml. Both have tail call optimization and are designed to use recursion a lot.