Re: Prefix dot in protocol method

2012-07-22 Thread Tassilo Horn
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"

Prefix dot in protocol method

2012-07-22 Thread Warren Lynn
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