On Sat, Jan 12, 2008 at 03:54:09PM -0800, Andrew Lentvorski wrote:
SJS wrote:
begin  quoting David Brown as of Thu, Jan 10, 2008 at 10:23:26PM -0800:

(defconstant solved-board
  (let ((nums (loop for i from 1 to full-size
            collect (and (< i full-size) i))))
    (make-array full-size :initial-contents nums))
  "The final solved board")

While I have no problem with this, lisp-niks would not approve of your use of loop.

Are any of these people still around?  LOOP is an outstanding example of
how lisp macros can be used to improve the language.

I find I spend a whole lot less time thinking about how to write iterations
using LOOP than I ever did in Scheme, or OCaml, or Haskell.

I think the main argument with LOOP is that it isn't very lisp-like,
basically defining it's own domain-specific language.  But, domain-specific
languages are common in lisp, so why complain when one is built-in.

Dave

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to