From: Chouser <chou...@gmail.com>
Date: Tue, 23 Dec 2008 15:20:43 -0500
Local: Tues, Dec 23 2008 3:20 pm
Subject: Re: A quasiquote for Clojure?
On Tue, Dec 23, 2008 at 11:08 AM, Rich Hickey <richhic...@gmail.com> wrote: Here's an example of one way to use it: > On Wed, Dec 17, 2008 at 2:53 PM, Rich Hickey <richhic...@gmail.com> wrote: >> Moving syntax-quote out of the reader might be a big deal. But I think >> ~x not in a syntax-quote yielded the form (unquote x) from the reader >> unquote would not be defined by Clojure, so still an error if allowed >> Things like your sql would be macros that handled (unquote x) > SVN 1184 implements this. > Feedback welcome on its utility for macro writers. user=> (where (and (> i (- 3 1)) (< i ~(+ 3 1)))) This 'where' macro produces something that looks vaguely like a SQL Here's the code: (defmacro where [e] --Chouser You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||