There is no official/formal way. But have a look at base/graphics.jl for an ad hoc way of specifying an interface. I think it's the only place in base where this is done, so I'm not sure how julian this is.
Also, I think Leah thought of adding some functionality to infer the interface of a type after the fact. Not sure whether that is in place already: https://github.com/astrieanna/TypeCheck.jl On Thu, 2014-03-27 at 02:12, [email protected] wrote: > I really like how interfaces work in Go and I was wondering if there's a > similar way to express this in Julia. For those who are unfamiliar with Go > interfaces they're essentially types defined by behaviour (functions) and > not by fields. > > So for example the ReadWriter interface implements the Read and Write > method, other defined types that have a Read and Write method can be > considered a ReadWriter. > > Dom
