On Sat, Jul 11, 2015 at 8:33 AM, William ML Leslie <
william.leslie....@gmail.com> wrote:

> Protocols (as seen in Clojure, which Swift borrows from somewhat, and
> Go) are a bit more than interfaces.  It's perfectly reasonable for a
> single 'type' to implement the same protocol in a variety of ways.  At
> least, in Clojure; maybe they boogered this in the other languages.
>
> I guess they are more like bitc's original capsule concept.
>

William: Did you actually look at the Swift reference when you made this
statement? I don't see anything in the language specification that would
allow a protocol to be implemented in multiple ways. Clojure may allow
that, but Swift does not appear to do so. The things you can specify as
compatibility requirements in a Protocol are a bit richer than I've seen in
many other Interface specifications, but they don't step (conceptually)
beyond the idea that an Interface defines a contract about which methods
must be present.

shap
_______________________________________________
bitc-dev mailing list
bitc-dev@coyotos.org
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to