I think you are right, Brad.

However, I wonder though if there is a better way to define a constant.
Neither the macro nor function seems clean. I like David's
wrapping-the-whole-thing-in-a-let, but what if you wanted to access the
value of "width" in a different file? Would one have to resort to defining a
Java class (at compile time or runtime)?


Paul

On Thu, Apr 2, 2009 at 10:47 AM, Bradbev <[email protected]> wrote:

>
> It would seem that macros in this case should not be required.  A
> normal function that simply returns a constant should get inlined by
> the JIT.
>
> Cheers,
> Brad
>

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

Reply via email to