On Fri, Jul 6, 2012 at 2:59 AM, David Nolen <dnolen.li...@gmail.com> wrote:
> On Fri, Jul 6, 2012 at 2:43 AM, kovas boguta <kovas.bog...@gmail.com> wrote:
>> For instance the protocol in the namespace that I forget to quality
>> doesn't get recognized:
>> WARNING: Symbol mvc/IMVC is not a protocol at line 38
>> src/cljs/client/subsession.cljs
>>
>> yet it works anyway. (have no idea how to make that go away)
>
> Forgetting to qualify a protocol sounds like a problem.
>
> Far as the not warning on invoking a missing fn in another namespace,
> sounds like something the compiler should/could have caught.

This is not quite what happened.. i slightly mistyped there.

The compiler was giving a warning for (render x), which correctly
would be (mvc/render x). So this is correct.

It was also giving a different warning during the course of a deftype
implementation of mvc/IMVC, despite it being properly namespaced and
most certainly a protocol. This is not correct.

But the real issue is the stacktrace one. In this case, the bug could
have been found by static analysis. But in general, it can not.


>
> David
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to