[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Influence of Lua on Go?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 9 Sep 2011 08:42:54 +0200
On Fri, Sep 9, 2011 at 8:22 AM, Miles Bader <miles@gnu.org> wrote:
> Yeah, and "tuple based" MRV tend to have a very different ("more rigid")
> feel than the looser MRV in languages like Lua and CL, and I think the
> two styles often result in significantly different usage.
Go is fairly strict about multiple assignment, so you will see things like this:
v, _ := something()
because the var list has to be the same length as the number of returned values.
Using _ like this seemed very suggestive to me ;)
steve d