Skip to content

Commit

Permalink
Began anaphoric macro library.
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Feb 13, 2011
1 parent 8c2282a commit 9925a2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions anaphoric.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;; DESCRIPTION: Anaphoric macros from On Lisp

(define-syntax (alambda args . body)
`(letrec ((self (lambda ,args ,@body)))
self))

(define-syntax (aif test then . else)
`(let ((it ,test))
(if it ,then ,(car else))))

0 comments on commit 9925a2f

Please sign in to comment.