Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11766 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54672 invoked by uid 1010); 31 Jul 2004 12:45:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54616 invoked from network); 31 Jul 2004 12:45:43 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 31 Jul 2004 12:45:43 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i6VCjgfc019329 for ; Sat, 31 Jul 2004 14:45:42 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i6VCjcvE019315; Sat, 31 Jul 2004 14:45:38 +0200 Date: Sat, 31 Jul 2004 14:45:37 +0200 (CEST) X-X-Sender: derick@localhost To: Jeff Moore cc: Edin Kadribasic , internals@lists.php.net In-Reply-To: <70D0E926-E26E-11D8-A36D-000502E1CD47@procata.com> Message-ID: References: <20040729021337.73894.qmail@pb1.pair.com> <200407291117.09573.lpedretti@suserver.com> <200407291037.12396.ilia@prohost.org> <41098F91.3000606@hristov.com> <004801c475bd$812f3580$0200a8c0@rusko> <410A5CBC.9090500@townnews.com> <410AB085.6070508@emini.dk> <70D0E926-E26E-11D8-A36D-000502E1CD47@procata.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] GOTO operator From: derick@php.net (Derick Rethans) On Fri, 30 Jul 2004, Jeff Moore wrote: > > On Jul 30, 2004, at 4:33 PM, Edin Kadribasic wrote: > > > Jeff Moore wrote: > > > >> Where did the if statements go? do_stuff(), do_more_stuff(), and > >> do_even_more_stuff() should throw exceptions rather than return > >> boolean error indicators. > > > > Now imagine do_stuff() and friends were native PHP functions ;) > > You might also have installed a standard error handler to raise some > kinds of php errors as exceptions. Exceptions are an OO thing, and it makes NO sense to use them in procedural code. Goto is a good thing here. Derick