On 12 July 2015 at 04:44, Jonathan S. Shapiro <[email protected]> wrote: > On Sat, Jul 11, 2015 at 8:33 AM, William ML Leslie > <[email protected]> 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.
Indeed, I was wrong. -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law. You absolutely MAY reproduce any part of it in accordance with the copyright law of the nation you are reading this in. Any attempt to DENY YOU THOSE RIGHTS would be illegal without prior contractual agreement. _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
