Created
May 8, 2012 18:35
-
-
Save borkdude/2638319 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro be (&rest args) | |
(let* ((withs (do-window-list (window (subseq args 0 (position 'in args)) :skip 2) | |
window)) | |
(body (subseq args (1+ (position 'in args))))) | |
`(let* ,withs | |
,@body))) | |
;; maakt een alternatieve manier van variabele-binding notatie mogelijk | |
#| | |
(be a 2 | |
in | |
(setf a (+ a 1)) | |
(+ a 3)) | |
|# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment