develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #56150] return return

Thread Previous | Thread Next
David Nicol
June 23, 2008 08:59
Re: [perl #56150] return return
Message ID:
On Mon, Jun 23, 2008 at 10:20 AM, Aristotle Pagaltzis <> wrote:

> And those of us who prefer to use guard clauses and not contort
> subroutines into nested single expressions cannot avoid `return`
> at all.

leaving the question, why doesn't the optimizer get rid of return?

tentative answer: because the optimizer authors didn't get around to it,
seeing once-per-subroutine as not enough savings to justify the effort.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About