Yeah that works the same as defining a function, just more explicit. I was looking for a way to define a constant and just use it as "my-const" without having to use the parens to call a function or a macro. I guess that would be something like a symbol macro in CL?
Paul On Thu, Apr 2, 2009 at 11:08 AM, MikeM <[email protected]>wrote: > > There is definline which seems appropriate in place of the constant > macros. > > (definline my-const [] 1) > (my-const) ;= 1 > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
