News for hackers. Stuff that matters.
Re:SICP Goodness – Why you don't need looping constructs by tzahola on Friday June 29, 2018 @07:24AM (#17423810)
Technically you don’t need loops, that’s true.

But from a pragmatic standpoint, it’s just too easy for someone to turn a tail-recursive function into non-tail recursive, causing a stack overflow eventually.

So when working in a large team, with run-of-the-mill programmers, I’d stick with loops.

Re:SICP Goodness – Why you don't need looping constructs by chriswarbo on Friday June 29, 2018 @07:39AM (#17423879)
Would an annotation help, e.g. a `tailcall` keyword, which will trigger an error for non-tailcalls?
Re:SICP Goodness – Why you don't need looping constructs by tasuki on Friday June 29, 2018 @09:26AM (#17424349)
Fwiw, Scala does exactly that with its `@tailrec` annotation.