Re: [PATCH 25/29] refs: resolve symbolic refs first
- From
David Turner <dturner@twopensource.com>
- Date
- Apr 29, 2016, 23:14 UTC
- Message-ID
- <1461971692.4123.41.camel@twopensource.com>
- In-Reply-To
- <57232EAB.3080406@alum.mit.edu>
On Fri, 2016-04-29 at 11:51 +0200, Michael Haggerty wrote:
Show 20 quoted lines
> On 04/29/2016 01:40 AM, David Turner wrote: > > On Wed, 2016-04-27 at 18:57 +0200, Michael Haggerty wrote: > > +retry: > > ... > > > + if (--attempts_remaining > 0) > > > + goto retry; > > > > could this be a loop instead of using gotos? > > It certainly could. The goto-vs-loop question was debated on the > mailing > list when I first added very similar code elsewhere (unfortunately > I'm > unable to find a link to that conversation). I was persuaded to > change > my loop into gotos, the argument being that the "retry" case is > exceptional and shouldn't be such a dominant part of the function > structure. Plus the goto code is briefer and feels less awkward to me > in > this case (that's subjective, of course).
It's part of the structure anyway; it's just implicit rather than explicit. I won't block consensus tho.