On Sat, Jan 3, 2009 at 11:51 PM, Stephen C. Gilardi <squee...@mac.com> wrote:
>
> On Jan 3, 2009, at 5:16 PM, Meikel Brandmeyer wrote:
>
> == is for numbers.
>
> That's correct. Now that "=" also handles numbers in an type-independent
> way, do well still need "==" in Clojure?
> Is it primarily a higher performance equality check when you know you're
> dealing with numbers?

Yes. Using == instead of = when the arguments are guaranteed to be
numbers can give you quite a bit of a performance boots if your loops
are tight (according to a blog post I read the other day :p )

> --Steve
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

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