Something like what I proposed in http://dev.clojure.org/jira/browse/CLJ-1807 would help solve this ambiguity

On 21/12/16 15:22, Mike Rodriguez wrote:


On Wednesday, December 21, 2016 at 9:02:36 AM UTC-6, Alex Miller wrote:



    On Wednesday, December 21, 2016 at 7:24:17 AM UTC-6, Mike
    Rodriguez wrote:

        That sounds like a good idea to me. I think the major
        potential issue is that it creates ambiguity and
        non-deterministic dispatch for Clojure maps in CollReduce (as
        IPersistentMaps are both Iterable and Seqable). So that would
        need to be resolved.


Yes, I thought of that and should have mentioned it in my post. It seems I often run into this issue with extending protocols to types and causing non-determinism. It'd be hard to pinpoint a "lower" type to cover these non-Clojure maps too. I suppose java.util.AbstractMap would cover a large group, but that still seems a bit arbitrary.

--
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
---
You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com <mailto:clojure+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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
--- You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to