3 ms·
Common Lisp doesn't technically require TCO but Scheme does. IMHO a Common Lisp without TCO is not a serious tool because I cannot write tail-recursive code wi
by dreamcompiler 1y ago
Common Lisp doesn't technically require TCO but Scheme does.
IMHO a Common Lisp without TCO is not a serious tool because I cannot write tail-recursive code with it.
- wavemode 1y agoTypical programming style in Common Lisp is procedural, not functional. The CL spec doesn't guarantee tail-call elimination, and most CL implementations don't guarantee it either (it could be on or off depending on the current optimization level). So most people don't bother relying on it.
- dreamcompiler 1y agoTrue. My CL code is atypical because I prefer functional style to iterative style. I know how to use declarations to turn on TCO for implementations that support it, which is most of the big ones. ABCL being a notable exception.