Re: PHP 5.1

From: Date: Mon, 06 Jun 2005 13:20:46 +0000
Subject: Re: PHP 5.1
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-16432@lists.php.net to get a copy of this message
Hi Stanislav, On Monday 06 June 2005 13.33, Stanislav Malyshev wrote: > I'm not sure why goto should be needed after many years of > successful life without it. I think parametrized break/continue > takes care of all cases when I would need goto in C, so I think > goto is not needed. People are talking about hypothetical messy code because of goto, but the current situation is even *worse*. I have some code that I have had to rewrite several times just because all those nested loops with different levels of break and continue is extremely hard to follow. Using recursive functions is not an option, as Ilia already said - it will just crash PHP. Exceptions ? No thank you, even worse then continue/break.. Magnus Määttä -- A kiss is a course of procedure, cunningly devised, for the mutual stoppage of speech at a moment when words are superfluous.

« previous php.internals (#16432) next »