News for hackers. Stuff that matters.
Re:Simplified Common Lisp reference by juki on Tuesday May 02, 2017 @04:58AM (#14244984)
I assume you're thinking about Schemes `(let loop (...) ...)`, but that doesn't exist in Common Lisp. CL:LOOP is a looping macro with its own small DSL.

    (loop :for i :below 5
          :when (evenp i) :collect i)
    ;=> (0 2 4)
Re:Simplified Common Lisp reference by lispm on Tuesday May 02, 2017 @05:30AM (#14245110)
That's a step up from loops with 'goto':

    (prog ((result '())
           (i 0))
      loop
      (when (>= i 5)
        (return (reverse result)))
      (when (evenp i)
        (push i result))
      (incf i)
      (go loop))
Re:Simplified Common Lisp reference by TeMPOraL on Wednesday May 03, 2017 @07:21AM (#14254715)
tagbody/go is implementation detail of macro expansion though.
Re:Simplified Common Lisp reference by lispm on Wednesday May 03, 2017 @08:00AM (#14254942)
prog + goto was two decades one of the main tools for loops in Lisp...