Cool, I opened: http://dev.clojure.org/jira/browse/CLJS-880
Thanks, Francis. I wondered if there was a singleton involved. The intersection of "singletons for common values" and "mutable singletons" is scary :) On Sat, Nov 1, 2014 at 3:05 AM, David Nolen <[email protected]> wrote: > A bug. Open a ticket in JIRA. > > > On Saturday, November 1, 2014, Marcus Lewis <[email protected]> wrote: > >> Hi, I got bit by some pretty surprising behavior: >> >> my.ns> (defprotocol IFoo) >> my.ns> (satisfies IFoo {}) >> false >> my.ns> (specify! {} IFoo) >> my.ns> (satisfies IFoo {}) >> true >> >> The IFoo specification leaks onto all other equal-valued instances. As a >> result, one of my functions was overwriting this specification for all >> existing instances with a single specify!. >> >> Non-empty collections behave as expected: >> >> my.ns> (defprotocol IFoo) >> my.ns> (satisfies IFoo {:a "a"}) >> false >> my.ns> (specify! {:a "a"} IFoo) >> my.ns> (satisfies IFoo {:a "a"}) >> false >> >> Thoughts? Known issue? >> >> -- >> Note that posts from new members are moderated - please be patient with >> your first post. >> --- >> You received this message because you are subscribed to the Google Groups >> "ClojureScript" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/clojurescript. >> > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
