Re: PHP 5.1
| From: | Lukas Smith | Date: | Mon, 06 Jun 2005 11:55:36 +0000 |
| Subject: | Re: PHP 5.1 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16419@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
DR>>which is ugly and already possible anyway). Using control blocks is no more ugly than using goto's - and thr right way to do it is using exception handling and finally, IMO.well exceptions as we have them right now are everything and much much more than what people who are against goto are bringing up. its entire idea is to bubble out of the scope (while the goto patch specifically disallows this). so exceptions pose a much greater risk for spegetti code than this proposed addition of goto ever well. the idea behind adding goto to me is #1 not having to create an instance just to be able to "goto" #2 not being able to jump out of the scope so suggesting exceptions as a "work around" the lack of goto is pointless imho .. regards, Lukas