I'm having a difficult time referencing a protocol in the user
namespace, I have the following code:
(ns clomoios.contextsearcher)
(defprotocol Searcher
(score [this term text] Score this text in similarity)
(rank [this term text] Rank sentences in this text))
(defrecord ContextSearcher
Hi Lee,
Your extend-protocol call is incorrectly parenthesized (rank is
outside the body of the form).
This means that use should blow up because the source is invalid.
Maybe your use is reading a different source file than you think it is?
Once I fixed that, the code works fine, at
it should have the correct amount of apologies.
Err...what I meant to say was the correct amount of parentheses, not apologies.
- Lee
--
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
On Mon, May 10, 2010 at 6:06 AM, Stuart Halloway
stuart.hallo...@gmail.com wrote:
Hi Lee,
Your extend-protocol call is incorrectly parenthesized (rank is outside the
body of the form).
This means that use should blow up because the source is invalid. Maybe
your use is reading a different