Hello Edin,

Friday, July 30, 2004, 8:03:36 PM, you wrote:


> On Friday, Jul 30, 2004, at 19:52 Europe/Copenhagen, Andi Gutmans wrote:
>>>> Come on. I can't even believe we are arguing about this.
>>>
>>> I really can't believe this "PHP is only for morons" attitude that 
>>> comes from time to time here on internals.
>>
>> It's not only for morons but the PHP spirit has always been to keep 
>> away of un verbose and unstructured crap like you can find in Perl and 
>> friends. I think the "goto" statement fits in that category and you 
>> guys are exaggerating the necessity of it both due to it making no 
>> sense from a performance aspect (which was one of the arguments) and 
>> as the most common use of goto which is breaking out of nested loops 
>> also doesn't hold water. So what's left? All of the generation stuff? 
>> Those tools can work a bit harder when they are doing machine 
>> auto-generation of code and survive.
>> The abuses of the goto statement are far greater than the uses, 
>> especially in a language like PHP.

> Look through this thread and you'll find an excellent example by Poul G 
> of how goto can make error handling code much more readable. That is 
> precisely where I needed it many many times.

> Sure you can do that with stinky and ugly goto emulation with do/while, 
> but I'd rather have tool that would allow me to do it in a clean way.

Use error handling functions.


-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

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

Reply via email to