News for hackers. Stuff that matters.
Re:Land Of Lisp chapter 7 - Using SBCL by ScottBurson on Saturday October 30, 2010 @11:01PM (#1852363)
How about simply this?

  (defun str (&rest strings)
    (format nil "~{~A~}" strings))
Re:Land Of Lisp chapter 7 - Using SBCL by mahmud on Saturday October 30, 2010 @11:52PM (#1852442)
I consciously avoided that because FORMAT and LOOP mastery is something that should wait until one knows Lisp well. Introduced too early, they can either scare someone (in the case of format) or tempt one to start writing Pascal (in the case of loop; which is why deliberately used it for its collected result, and not its side-effect, as more common.)

FWIW, my first Lisp programs where board-games and I learned quite a bit about recursion trying to format ASCII art in curses. If I knew FORMAT had control, I wouldn't have learned much lisp so quickly, since quirky little DSLs are fascinating.

Re:Land Of Lisp chapter 7 - Using SBCL by gibsonf1 on Sunday October 31, 2010 @10:31AM (#1853286)
I use:

(defmacro str (string &rest strings)

`(concatenate 'string ,string ,@strings))