Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created May 8, 2012 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borkdude/2638319 to your computer and use it in GitHub Desktop.
Save borkdude/2638319 to your computer and use it in GitHub Desktop.
(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