On Mon, Aug 17, 2009 at 7:45 PM, Mark Engelberg<mark.engelb...@gmail.com> wrote: > > On Mon, Aug 17, 2009 at 9:25 AM, Bradbev<brad.beveri...@gmail.com> wrote: >> I found >> another 2-3x speed up by coercing the indexes with (int x), ie >> (defmacro mass [p] `(double (aget ~p (int 0)))) > > Which makes me wonder why aget doesn't automatically coerce an index > to an int. Would an input that can't be coerced to an int even really > make sense here? >
Seems like literals could be auto-coerced to whatever the type needs to be. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---