Tugger the SLUGger!SLUG Mailing List Archives

Re: butfirst (was Re: [SLUG] gzip from perl script)


On Thu, Sep 22, 2005 at 05:20:23PM +1000, Jacinta Richardson wrote:
> > One thing thats been bugging me for a while about Perl is the
> > lack of a butfirst keyword. This would be *really* useful for
> > constructs like:
> > 
> >     {
> >        # Huge chunk of code
> >     }
> >     butfirst
> >     {
> >        # Second huge chunk of code to be executed
> >        # before the one above.
> >     } ;
> I'm struggling to imagine any cases this would be useful excepting do-while
> loops (which exist anyway).  I'm also not entirely convinced the loss of
> readability (if the first hunk of code was really big, I wouldn't know to look
> for a butfirst block and might therefore misunderstand the code) would make it
> practical.

Erik has strong views on programming languages, and he's trolling you. At
least he's giving those of us who don't completely despise C++ a break for
once.

-- 
Mark