Re: A style question




On Tue, 27 Feb 2007 21:02:46 -0500, job-271842874@xxxxxxxxxxxxxx said:
|...
| 1) In "ANSI Common Lisp", Graham makes the following comments:
| "The loop macro was originally designed to help inexperienced Lisp
| users write iterative code...Unfortunately, loop is more like English
| than its designers ever intended...to understand it in the abstract is
| almost impossible...For such reasons, the use of loop cannot be
| recommended."

| Is this a minority view? One of the things that attracted me to Lisp
| was the simplicity, consistency, etc. of the language, so when I read
| the above, it seemed reasonable.

Gain experience with Common Lisp; in particular, learn (in alphabetical
order) DO, DOLIST, DOTIMES, and LOOP. Use them and see how others have
used them. Then form your own opinion.


| ...
| 4) Curious about the history of "terpri" - I guess it's shorter than
| "newline" but not very intuitive :)

Interesting---I was checking how googlable that was, and it turns out
there is even http://terpri.org/ (q.v.).

---Vassil.

--
mind mate, n.
One of two persons mentally compatible with each other (cf. soul mate).
.



Relevant Pages

  • Re: do expression
    ... assignments be executed during execution of the do loop ... do (funcall g th2) ... the Common Lisp version above is incorrect. ... What needs to be done in a translation of binding semantics to assignment semantics is that new local bindings are created manually in each iteration, so that they can persist, and that all references go to those local bindings. ...
    (comp.lang.scheme)
  • Re: Common Lisp implementations are still multiple times slower than C
    ... In another thread in this newsgroup some people wrote that Common Lisp can ... Java compiler to create an efficient version. ... (loop for y from 0 below height ... (if (zerop cell) ...
    (comp.lang.lisp)
  • Re: Why Im giving up on Lisp for now
    ... >> Over the last few months I've made an effort to learn Common Lisp, ... >> never work first time, and I have to experiment with quotes, ... > Macros can be tricky. ... loop takes two minutes instead of two seconds. ...
    (comp.lang.lisp)
  • Re: LOOP probblems
    ... Common Lisp Loop Macro" couldn't help me! ... Don't say (gethash c 'mappings), ...
    (comp.lang.lisp)
  • Re: if then else
    ... > clearer than using IF, WHEN, UNLESS, and COND. ... > deeply disturbed by IF* since Common Lisp has perfectly good ... I would've liked to have seen a serious discussion on DO vs. LOOP -- ...
    (comp.lang.lisp)