[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Why take out remaining arguments when not last
- From: Cuero Bugot <cbugot@...>
- Date: Mon, 3 Oct 2011 05:03:03 -0700
> a,b,c = f(), g(), h()
> do I want to think about whether a will be set to the result of h()
> because f and g choose to return nothing? Or c be set to the value of
> g() because a returned nil and an error string?
>
> It is "limit", not "eliminate".
Well if that's really what you wan to do, they you would write:
a,b,c = (f()), (g()), (h())
And then "limit" would indeed become "eliminate" (the language does what to tell it to do, no more, no less)
- References:
- A very basic thing I don't get, Thijs Koerselman
- Re: A very basic thing I don't get, Peter Cawley
- Re: A very basic thing I don't get, Stefan Reich
- Re: A very basic thing I don't get, Michal Kottman
- Re: A very basic thing I don't get, Stefan Reich
- Re: A very basic thing I don't get, Philippe Lhoste
- Re: A very basic thing I don't get, steve donovan
- Re: A very basic thing I don't get, Roberto Ierusalimschy
- Re: A very basic thing I don't get, Pascal J. Bourguignon
- Re: A very basic thing I don't get, Dirk Laurie
- Re: A very basic thing I don't get, Axel Kittenberger
- Re: A very basic thing I don't get, Pierpaolo Bernardi
- Why take out remaining arguments when not last (was: A very basic thing I don't get), Cuero Bugot
- Re: Why take out remaining arguments when not last, David Kastrup