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.

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.

David

On Wed, Sep 16, 2015 at 11:48 AM, Jonathan Leonard <[email protected]>
wrote:

>
>
>
>
> On Sep 16, 2015, at 5:40 AM, David Nolen <[email protected]> wrote:
>
> On Wed, Sep 16, 2015 at 12:28 AM, Jonathan Leonard <[email protected]>
> wrote:
>
>> Per the documentation on defprotocol for Clojure itself, such a reference
>> (e.g., in a reify of a protocol defined in a separate file/namespace) does
>> require a fully qualified name (and will not accept unqualified name).
>>
>
> As far as I know this is not the case. If the documentation says so it is
> incorrect with respect to the implementation and code in the wild,
> https://github.com/clojure/core.async/blob/master/src/main/clojure/clojure/core/async/impl/channels.clj#L67
>
>
> Please note: "All [both the methods and the protocol itself] are
> namespace-qualified by the ns enclosing the definition" from:
>
> https://clojuredocs.org/clojure.core/defprotocol
>
> Also, I've gotten compile errors from Clojure itself when the qualification 
> is left out and I've read tutorials which also say that the namespace is 
> required.
>
>
>
>
>> Using the fully qualified name in ClojureScript produces the following
>> error:
>> Caused by: clojure.lang.ExceptionInfo: set! target must be a field or a
>> symbol naming a var at line 7 test/graphql-tlc/core.cljs {:file
>> "test/graphql-tlc/core.cljs", :line 7, :column 3, :tag :cljs/analysis-error}
>>
>> Is this a known/expected deviation from Clojure proper?
>>
>> Thanks!
>>
>
> The bug is that qualified protocol methods are not supported in
> ClojureScript. Please open a minor issue about this in JIRA with your
> minimal example.
>
>
> Ok, will do. Thanks!
>
>
>
> Thanks!
> David
>
> --
> 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.
>

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