Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17033 invoked by uid 1010); 30 Jul 2004 17:56:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16995 invoked from network); 30 Jul 2004 17:56:50 -0000 Received: from unknown (HELO jan.prima.de) (83.97.50.139) by pb1.pair.com with SMTP; 30 Jul 2004 17:56:50 -0000 Received: from ZARNIWOOP (ip2.198.145.31.iinet.com [::ffff:198.145.31.2]) (AUTH: LOGIN tobi) by jan.prima.de with esmtp; Fri, 30 Jul 2004 17:54:47 +0000 Date: Fri, 30 Jul 2004 19:56:01 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <991897923.20040730195601@marcus-boerger.de> To: Stefan Esser CC: internals@lists.php.net In-Reply-To: <410A05C7.8060300@php.net> References: <410A05C7.8060300@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Removing Try and Catch From: helly@php.net (Marcus Boerger) Hello Stefan, i thought of ignoring all of this thread but you didn't let me. Exceptions are neccessary for constructor failure and there is no other way to do it. BUT even though goto is needed for non oo generator code (compiler compilers etc.) it is a dangerous thing that basically promotes spagetti code. marcus Friday, July 30, 2004, 10:24:39 AM, you wrote: > Hi, > okay lets remove GOTO and of course also remove try,catch. You can > emulate the whole try/catch thing with lots of unreadable do/while/break > statements. So why insert a stupid construct, that can only help the > developers to shoot themself in the foot. > Stefan -- Best regards, Marcus mailto:helly@php.net