Basically you're falling into the trap of thinking of protocols as if
they were interfaces...protocols do not represent a specific data-type
but rather a contract. That contract can then be extended to any
concrete type. But you always need to go through the protocol...what I
do when I have many protocols is to put them all in a single file and
:refer :all it.
hope that helps,
Jim
On 12/01/14 13:27, Jim - FooBar(); wrote:
Haha I knew it!!!!
Instead of using .ret-value and .write use cqrs.storage/ret-value and
cqrs.storage/write...Also in your ns declaration you don't really need
to bring in the protocol. YOu can bring in the functions it defines :)
Jim
On 12/01/14 13:22, bob wrote:
Sure, here has a protocol named Store
<https://github.com/weejulius/raiseup/blob/master/diy/raiseup/src/cqrs/storage.clj> ,
and will be used in this file
<https://github.com/weejulius/raiseup/blob/master/diy/raiseup/src/cqrs/eventstore.clj> at
line #14, the compiler tells me the warnings, forgot to mention I
set warn-on-reflection to true.
please let me know if I miss something.
Thanks a lot.
On Sunday, January 12, 2014 9:07:10 PM UTC+8, Jim foo.bar wrote:
.Would you mind sharing sample code that demonstrates the
issue, with us?
Jim
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient
with your first post.
To unsubscribe from this group, send email to
[email protected]
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 unsubscribe from this group and stop receiving emails from it,
send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.