Re: PHP 5.1

From: Date: Tue, 07 Jun 2005 08:21:34 +0000
Subject: Re: PHP 5.1
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-16472@lists.php.net to get a copy of this message
Magnus Määttä wrote: > I don't see how putting a name on the number makes it any better and I > still would have to emulate it with loops and breaks and continues, > unless it's actually a code word for goto ;) your code with named breaks/continues: continue_label: for (...; ...; ...) { break_label: for (...; ...; ...) { if (...) { ... code ... continue continue_label; } else { ... code ... break break_label; } } } I think, it's more readable and I can add loops without change labels. FYI: label break_label is redutand :) (in this case) -- Ondrej Ivanic (ondrej@kmit.sk)

« previous php.internals (#16472) next »