Re: ClassNotFoundException when importing a clojure interface

2021-07-18 Thread Jack Park
Thanks Alex! I am beginning to move away from design by interface. Actually making progress now. Cheers, Jack On Sun, Jul 18, 2021 at 12:34 PM Alex Miller wrote: > definterface is generally considered a low-level tool in Clojure and > typically Clojure developers do not create interfaces direc

Re: ClassNotFoundException when importing a clojure interface

2021-07-18 Thread Alex Miller
definterface is generally considered a low-level tool in Clojure and typically Clojure developers do not create interfaces directly like this. The two primary means of function abstraction/polymorphism are multimethods (can dispatch on any aspect of any of the parameters to a function) and prot

Re: ClassNotFoundException when importing a clojure interface

2021-07-17 Thread Jack Park
Tanya, That did help, swapping ie4clj.api.Inferrable for its import. That, of course, got me into the next coding bug, about which I shall ask next (I am attempting to use doseq to walk a list and AND its Inferrable members) Meanwhile, I am truly surprised that you said I don't think it is the

Re: ClassNotFoundException when importing a clojure interface

2021-07-17 Thread Tanya Moldovan
Hi, I don't think it is the right way to use interfaces in clojure. Take a look at this and this . You c

ClassNotFoundException when importing a clojure interface

2021-07-17 Thread Jack Park
I created a gist https://gist.github.com/KnowledgeGarden/39742ae9ae641f0d8facb31b288ece4c which explains a ClassNotFoundException when I am importing and reifying a particular interface in another clj file. It's really baffling because, in the load order, core calls a test in a test file - gett