5 ms·
> I mean lisp is mostly tree recursion everywhere. Two things: 1. This isn't true. Common Lisp style emphasizes looping; Scheme emphasizes recursion. 2. Wha
by dreamcompiler 7y ago
> I mean lisp is mostly tree recursion everywhere.
Two things:
1. This isn't true. Common Lisp style emphasizes looping; Scheme emphasizes recursion.
2. What's wrong with tree recursion anyway?
- zerr 7y agoMany think/prefer that it is a compiler's job to convert conveniently (Algol-style) written program into AST, even if this reduces the macros capabilities - even Norvig switched to Python long time ago :)
- dreamcompiler 7y agoSome of us find that writing ASTs directly with a smart editor is much more convenient than writing Algol-style languages. Norvig switched to Python when he left NASA and went to work for Google. He wasn't going to convert Google's culture to one that embraced Lisp.
- kesava 7y agoThis is potentially such a Annie Hall Marshall McLuhan moment. Here's hoping @norvig pops in and replies to this thread.
- agumonkey 7y ago1) well I may be cutting corners but to me lisp is vastly about sexp and encoding of interpretation in sexps. that commonlisp advocates for some linear looping constructs is one thing but, to me, it's only a thin part of the top of the iceberg 2) nothing wrong to me, but I suppose that to the mainstream, if you had to pick between sexps, lambdas and treerec idioms over perl regexes or php arrays/templating, or jQuery dom shenaningans .. it probably look too dry to bear any value (culture shock) Again, that's only my opinion :)