Re: PHP 5.1

From: Date: Tue, 07 Jun 2005 11:39:36 +0000
Subject: Re: PHP 5.1
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-16484@lists.php.net to get a copy of this message
EK>>number on the ratio of abuse vs. use of this new feature. So far, I personally saw one legitimate use brought up - exiting control blocks, which can be handled with another proposal, labeled breaks. Another use brought up - claim that parsers can't work without it - don't seem to me a valid argument for goto, I'm perfectly sure one can write parsers without any gotos, as many languages (e.g. Java) don't have gotos and have parsers for all kinds of data. That's not to mean PHP should always mimick Java, but this is to prove that agument about necessity of goto for parser writing is false. So, we are back to only one legitimate use. You are welcome to bring forward more. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.internals (#16484) next »