News for hackers. Stuff that matters.
Re:Google Common Lisp style guide by smabie on Tuesday July 07, 2020 @08:56PM (#23765937)
You probably shouldn't be using recursion either. maps, folds, and scans are the bread and butter of FP programming. tail recursion is almost as bad as a normal loop, and shouldn't be necessary most of the time. The most reasonable use of tail recursion is when the combination of the above operations doesn't have good enough time complexity, necessating that you do everything at once.

Though, when I programmed CL in the past I used the iterate macro, which I found a lot nicer than the ugly loop one.

Re:Google Common Lisp style guide by dreamcompiler on Tuesday July 07, 2020 @10:04PM (#23766241)
CL has maps and folds (the latter it calls REDUCE) and I definitely prefer them to any form of iteration when they make sense.