On Wed, Oct 28, 2009 at 12:05 PM, Mark Engelberg
<mark.engelb...@gmail.com>wrote:

> This is basically the behavior I would expect.  I expect that when I
> put two sequences into a set, they are compared for equality, which is
> clearly impossible if they are infinite.  I don't think I'd want some
> automatically truncated comparison.  If I really wanted truncated
> comparison, there are ways to achieve that.


Yes, I doubt equals can be made to work, but hashCode can, and equals can do
something a bit more reasonable for (some) infinite sequences such as throw
an exception.

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

Reply via email to