News for hackers. Stuff that matters.
Re:How Lisp macros differ from static code-generation and me... by GregBuchholz on Wednesday January 26, 2011 @01:06PM (#2144188)

    (defun for-duration (seconds body)
        (handler-case  
             (bt:with-timeout seconds 
        	   (body))
           (bt:timeout () nil)))
    
    (for-duration 10
        (lambda ()
          (loop 
            (print "Infinite loop! where is your Godel now?"))))
Re:How Lisp macros differ from static code-generation and me... by makmanalp on Wednesday January 26, 2011 @02:54PM (#2144799)
I think Greg is trying to say "why the hell do we even need macros for this"?
Re:How Lisp macros differ from static code-generation and me... by mahmud on Wednesday January 26, 2011 @09:00PM (#2146237)
With functions you have to make a conscious effort to quote arguments, otherwise the strict evaluation will evaluate its arguments before the function. Also, with macros you can introduce you new "implicit" control and structure semantics; it's very common for forms to have an "implicit progn", or a block named NIL or similar.