Re: True labelled breaks

From: Date: Mon, 20 Feb 2006 09:06:06 +0000
Subject: Re: True labelled breaks
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Derick Rethans wrote:
I will use it. << that good enough? :) But seriously, I have quite a few cases where I would use it if it was available.
same here ... i tried to avoid the current "break n;" where ever possible as it is easy to run into a maintainance nightmare with it (renumbering! this is so 80ies BASIC ...), so i tend to use flag variables instead in cases where i need to terminate several nested loops. labeled breaks are *so* much better/cleaner than both approaches above that i'd really love to have them ... IMHO "break n;" is even more evil than "goto label;", it is almost in the same league as "goto linenumber;" ... -- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.com

Thread (30 messages)

« previous php.internals (#21951) next »