3 ms·
RE: 2 Tail recursion is non-idiomatic in Common Lisp; both because the standard does not guarantee tail-call elimination (as opposed to, say, Scheme) and becau
by aidenn0 4y ago
RE: 2
Tail recursion is non-idiomatic in Common Lisp; both because the standard does not guarantee tail-call elimination (as opposed to, say, Scheme) and because dynamic-binding, which is idiomatic in Common Lisp reduces the number of calls that are in a tail position.
Also, tail-recursion is entirely divorced from syntax; perhaps you meant semantics? For example GCC will optimize tail calls in a rather broad number of contexts.
- Joel_Mckay 4y agoIf I recall correctly, some Lisp dialects had a super character that world close n open parentheses left open. You may have confused interesting with useful... Have a nice say ;)