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

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

Reply via email to