As far as I can tell, the ticket as it stands now is just my original ticket 
with some fluff removed. From my perspective, yes, what remains is the actual 
issue (and has always been the issue). :)

Although regarding your summary change:

I do think that under the skin what's happening here is that the vars 
associated with the methods inside the declared protocol are being defined on 
the global namespace (which is fine in JavaScript since everything ends up in 
the same file most likely anyway). I doubt that this bug would even be possible 
in Clojure proper since it compiles things into Java namespaces and classes.

--Jonathan



> On Sep 16, 2015, at 12:27 PM, David Nolen <[email protected]> wrote:
> 
> You should re-read what I said :)
> 
> Your ticket after I modified it reflects the actual issue.
> 
> Thanks,
> David
> 
>> On Wed, Sep 16, 2015 at 2:39 PM, Jonathan Leonard <[email protected]> 
>> wrote:
>> >
>> > On Sep 16, 2015, at 11:36 AM, David Nolen <[email protected]> wrote:
>> >
>> > You are misinterpreting the documentation as far as I know. It's just 
>> > referring to the fact that the protocol fn vars and the protocol var exist 
>> > in the namespace they were declared.
>> 
>> But that is exactly my interpretation. Therefore to refer to those vars from 
>> another namespace, they need to be qualified (or the namespace ‘used’ or 
>> ‘imported' etc).
>> 
>> 
>> > I have never encountered the issues you have described and as I've already 
>> > said, you'll find plenty of code in the wild that does correspond to your 
>> > interpretation.
>> >
>> 
>> Have you tried my minimal repro? It happens every time for me (both the 
>> expected behavior works in Clojure and doesn’t in ClojureScript).
>> 
>> —Jonathan
>> 
>> 
>> --
>> 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 a topic in the Google 
> Groups "ClojureScript" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojurescript/Rgnn_KPSY_o/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

Reply via email to