http://www.perlmonks.org?node_id=161537


in reply to Shift versus Sanity

The only Perl statement I refuse to use is goto()


Everything went worng, just as foreseen.

Replies are listed 'Best First'.
Re: Re: Shift versus Sanity
by Anonymous Monk on Apr 24, 2002 at 10:40 UTC
    Hmm... goto &func is really, really useful in an AUTOLOAD. I agree that goto LABEL is really bad. And its lots faster and slightly better structured to do redo LABEL instead.

    The redo LABEL trick is something I'm using in a Scheme implementation I'm working on. It's sort of horrible, but it buys me tail call optimization and (coming soon) 'real' continuations, so I'll make the trade.

      Gah! Note to self: Always log on before commenting.

        Oh, don't worry about that Piers. We knew it was you. Who else is implementing Scheme in a version of Perl not yet released?

        Cheers,
        Erik