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

Re: [perl #56150] return return

Thread Previous | Thread Next
From:
David Nicol
Date:
June 23, 2008 08:59
Subject:
Re: [perl #56150] return return
Message ID:
934f64a20806230859s361c85cbl32b8195f9fcbc237@mail.gmail.com
On Mon, Jun 23, 2008 at 10:20 AM, Aristotle Pagaltzis <pagaltzis@gmx.de> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About