Doh! You are right. I just wrote a simple test program and it turns out that my mistake in recollection was confusing the *impl site* (i.e., inside a 'reify') with the *call site*. The qualification is of course required at the call site but as you pointed out, optional within the reify.
Sorry for the confusion! On Wednesday, September 16, 2015 at 12:58:30 PM UTC-7, David Nolen wrote: > On Wed, Sep 16, 2015 at 3:40 PM, Jonathan Leonard <[email protected]> wrote: > > > > > > > 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 > > > > There are no global names involved here with respect to ClojureScript > semantics. Even if you do not qualify the method names, they will be > correctly resolved because you already qualified the protocol - no more > information is necessary as they have to come from the same namespace anyhow. > The bug is purely a syntactical one - if you do decide to qualify the method > names, it should _also_ work! > > > 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 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.
