Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lisp is Obsolete

Name: Anonymous 2013-05-30 10:32

Symta:
aif C T E => form \It | It = ,C | if It T E

Lisp:

 (define-syntax aif
   (sc-macro-transformer
    (lambda (form environment)
      (let ((condition 
             (make-syntactic-closure environment '() (cadr form)))
            (consequent 
             (make-syntactic-closure environment '(IT) (caddr form)))
            (alternative
             (make-syntactic-closure environment '() (cadddr form))))
        `(LET ((IT ,condition))
           (IF IT
               ,consequent
               ,alternative))))))

Name: Anonymous 2013-05-30 11:10

Doesn't that have "too many statements on one line"? Or did you change your mind on that?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List