I will give a concrete example as explanation.

In pinot.events there is a function "on"

(on elems :click event_handler)

:click goes on to be looked up in the javascript map EventType in 
goog.events  

This lookup is done by string - which is fine in unoptimised code but does 
not work in advanced mode.

I can modify the function and then write (on elem (.CLICK 
gevents/EventType) f)
but this is not as nice.

This is why I would like to have the macro.

Is there an alternative way to achieve this?

cheers

Dave


-- 
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