3 ms·
Unless you're using a functional programming language that does not support iteration. (and even if it does support it, it's typically preferred to use tail rec
by mlashcorp 4y ago
Unless you're using a functional programming language that does not support iteration. (and even if it does support it, it's typically preferred to use tail recursion)
- discardable_dan 4y agoI think in those cases, you'll also find that those programmers use recursion, and write programs that recur -- not ones that recurse.
- 082349872349872 4y agoWhile others are by GOs possessed, And WHILE-DO, CASE, and all the rest, The LISPing hackers will prefer With COND their programs to invest And let their functions all recur When searching trees in maddened quest. https://www.ultimate.com/phil/pdp10/quux.poem https://www.ultimate.com/phil/pdp10/quux.poem
- mlashcorp 4y agoAh gotcha. Apologies not a native speaker so the nuance was lost on me
- thfuran 4y agoThe bigger issue is that they're essentially entirely incorrect. "Recurse" is both in common use and well understood. I'd even argue that it's more correct than "recur", since it's unambiguously about recursion.