Hey all. I'm pretty new to Clojure, and wanted to try my hand at
writing a macro.
'dowhile' is nothing special, but I'd still like to hear any comments/
suggestions you may have.
(defmacro dowhile [body test]
`(do ~body (while ~test ~body)))
A test shows...
(macroexpand-1 '(dowhile (dosync
body]
`(let [body# #(~...@body)]
(body#)
(while ~test (body#
On Fri, Oct 9, 2009 at 12:56 PM, nilamo 7nil...@gmail.com wrote:
Hey all. I'm pretty new to Clojure, and wanted to try my hand at
writing a macro.
'dowhile' is nothing special, but I'd still like to hear