Thanks for the clarification Stuart! I think I see how to think about
protocols ... and not as an interface, in the java sense. I think it
makes sense to me now.
Love your book, btw!
-Travis
On Jun 21, 12:31 pm, Stuart Halloway stuart.hallo...@gmail.com
wrote:
Hi Travis,
The choice of
Hi Travis,
The choice of extend follows from this reasoning:
(1) Create a protocol. At this point there are no implementations. Protocol
functions will fail regardless of arguments passed.
(2) Extend the protocol to a String. The protocol has been *extended* to work
with one type, Strings.