Re: PHP 5.1

From: Date: Tue, 07 Jun 2005 12:07:35 +0000
Subject: Re: PHP 5.1
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-16490@lists.php.net to get a copy of this message
On Tuesday 07 June 2005 14:00, Stanislav Malyshev wrote: > I didn't ever saw any need in Perl goto - except for goto& construct which > isn't goto at all. As for C goto - it's usually used as replacement for > multilevel break/continue or in weird code like lexx parsers, and is > generally frowned upon on other occasions (though, of course, in places > like OS kernel code when every bit of performance counts one may need to > use goto's in numbers - but that's entirely different realm). There are plenty of good uses for goto in C. Take a look at sapi/cli/php_cli.c. I don't see why having ability to jump out on error like goto end; or goto end_clean; and such would be a bad addition to the language. Edin

« previous php.internals (#16490) next »