Erik de Castro Lopo 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.
>     } ;

G'day Erik,

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.

Can you give some pared down examples of what kinds of things you'd put in each
block and in particular why you wouldn't just do the butfirst stuff before the
first block?

All the best,

        Jainta

-- 
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +61 3 9354 6001        |
  _..`--'_..-_/  /--'_.' ,'           | [EMAIL PROTECTED] |
 (il),-''  (li),'  ((!.-'             |   www.perltraining.com.au   |


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to