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