Magnus Määttä wrote:

> I have small example of "code" that would be so much easier to
> understand and follow with goto..
>
> I removed all actual code to make it a bit shorter, it's actually
> around 150-200 lines long, just this outer for-loop..
>
> for (...; ...; ...) {
>     for (...; ...; ...) {
>         if (...) {
>           ... code ...
>           continue 2;
>         } else {
>           ... code ...
>           break;
>         }
>     }
> }

[Further snipped to highlight important bits.]

Wouldn't named breaks be just as readable as goto here?

James

--
James Aylett
  Chief Technical Architect, Tangozebra
  t 020 7535 9850 f 020 7535 9900
  w http://tangozebra.com/


This e-mail message, including any attachments, is intended only for
the person or entity to which it is addressed, and may contain
confidential information. If you are not the intended recipient, any
review, retransmission, disclosure, copying, modification or other use
of this e-mail message or attachments is strictly forbidden.

Copyright Tangozebra 2005. All Rights Reserved.



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to