[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: OOPs in Lua
- From: Coda Highland <chighland@...>
- Date: Thu, 16 May 2013 07:01:01 -0700
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