Hi,

Am 17.12.2008 um 18:21 schrieb David Nolen:
You can have unresolved symbols within a macro with:
~'symbol

I don't think this is really an alternative.

(def x 5)
(sql col1 from table1 where col2 = ~x)

(sql `(~'select ~'col1 ~'from ~'table1 ~'where ~'col2 ~'= ~x))

(def *cmd* "/usr/bin/command")
(run (~*cmd* -option 1 -another argument foo bar))

(run `(~*cmd* ~'-option 1 ~'-another ~'argument ~'foo ~'bar))

Also list with quote is quite verbose:

(sql (list 'select 'col1 'from 'table1 'where 'col2 '= x))

This also doesn't compare in ease of use and elegance to the
Scheme version.

Sincerely
Meikel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to