lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, May 16, 2013 at 1:41 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> An interesting idea which is definitely transportable is Go's idea of
> _interfaces_; if we have an interface containing a single method like
> 'write', then _any_ type which implements that method satisfies the
> interface, even if that type didn't 'implement' that type explicitly. It
> doesn't work in the case of function overloading, but Go and Lua don't have
> that problem anyway.

Which is, of course, another way of saying "duck typing".

/s/ Adam