News for hackers. Stuff that matters.
Re:Clojure Protocols & Datatypes — A sneak peek by signa11 on Tuesday June 01, 2010 @01:39AM (#1394409)
> Protocols in Clojure are similar to Java Interfaces, though not quite. Basically a protocol is a contract, a set of functionalities without any implementation

how is this different from Go's implementation of an 'interface' type http://golang.org/doc/go_for_cpp_programmers.html#Interfaces

Re:Clojure Protocols & Datatypes — A sneak peek by zaph0d on Tuesday June 01, 2010 @07:37AM (#1394816)
I asked Rich Hickey and this is what he had to say - "they differ from Go interfaces in that Go just uses method conformance to determine interface support (vs explicit declaration of 'I implement this protocol'), and Go's interfaces, last time I checked, were only 'open' within a module."