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]
> <javascript:_e(%7B%7D,'cvml','clojurescript%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[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.

Reply via email to