- To: Jacinta Richardson <jarich@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: butfirst (was Re: [SLUG] gzip from perl script)
- From: Mark Johnathan Greenaway <mark@xxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 17:42:00 +1000
- Cc: Erik de Castro Lopo <erikd-slug@xxxxxxxxxxxxx>, slug@xxxxxxxxxxx
- User-agent: Mutt/1.3.28i
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