Warren Lynn writes:
Hi Warren,
> I found that if I define a protocol like this:
>
> (defprotocol IProc
> (procMethod [this] "some method"))
>
> I can invoke it on a type either
> (procMethod object)
> or
> (.procMethod object)
>
> Note the prefix dot in the second case.
>
> I like this "dot"
I found that if I define a protocol like this:
(defprotocol IProc
(procMethod [this] "some method"))
I can invoke it on a type either
(procMethod object)
or
(.procMethod object)
Note the prefix dot in the second case.
I like this "dot" version because that means I can replace a record field