Hi!

I would like to change behavior/semantic for my DSL. So instead of typing 
this:

 (constraints (where-and (where :field > 123123) (where :field < 3242432)))

I could type this:

 (where (and (:field > 123123) (:field < 3242432)))

The catch is that macro "where" shouldn't interpret its content but define 
in its scope "and" function and change behavior of invocation of all 
keywords.
Is it possible? Motivation is that it is always easier to modify/maintenance 
changed behavior than to program interpreter and then write behavior with it 
and finally modify/maintenance it.


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to