If you're implementing an interface, you can use deftype to create
objects with multiple mutable and immutable fields and with methods
corresponding to that interface.
And you can use definterface to make an interface. You don't even have
to call the objects via the interface. :)
Right now I can get java classes and interfaces with defprotocol and
defrecord and the world is good.
Can somebody please educate me in the uses/needs for :gen-class and friends?
Keep in mind that I haven't really done much Java interop so my
question may indeed be a silly one.
Cheers!
U
I suppose this is for when you want to add fields to an already
existing class? (I'm assuming that adding methods could be done with
extend/extend-protocol?)
U
How do you guys normally manage resources when using lazy sequences?