Re: Why assignment before return? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why assignment before return?
Date
Msg-id 15831.1282310844@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why assignment before return?  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Why assignment before return?  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> I see your answer as "no, not really any reason, but also not worth
> changing", which is fine by me :-)

Yeah, that's a fair summary.  If it had been coded the other way
to start with, I'd also say it wasn't worth changing, at least
not until such time as we actually needed to.

In the meantime, any added functions of the same ilk should definitely
be made to look like the existing ones.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!
Next
From: Robert Haas
Date:
Subject: Re: small smgrcreate cleanup patch