Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37990 invoked from network); 30 Apr 2013 17:57:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2013 17:57:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.44 mail-la0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:40306] helo=mail-la0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/78-18873-71600815 for ; Tue, 30 Apr 2013 13:57:44 -0400 Received: by mail-la0-f44.google.com with SMTP id ed20so690201lab.31 for ; Tue, 30 Apr 2013 10:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=VLjIG1PW0ek6PSMJ3qiEbNTkW+UgCuzLOZw2A0uEPFM=; b=SVUsQWRm2zExLnu+NNDze4O5PVwgqRkyhRq0BBjVvZayEi9pKxHXNV3mZ0944cuPZ0 55tzpi67nYsSHHCaPT4qTaH+7qmtvf8yZeR3lhUWepwWMHoUOLwXIx+y7wz50RdvEXbh HA/ohDZ6m6ZMCw7dJql3y1wkhel4h8SHTJwSh9MeCHmLhQ2prJHhhyN2wQUXNp2PyiM8 XNdKIpMTAJsWt8o28SSVsg4zdCi2rqN+UChJ/c4MwWOdrQOvL6YxcS38INDYMSwkBL6B NinPxVbVPzc+0+4l+5z9krZIHSoG0T9L/czWivZmMl4gUiKcwi/4da+KI8H9JAFoMI1p aMdg== MIME-Version: 1.0 X-Received: by 10.152.116.8 with SMTP id js8mr7040224lab.3.1367344660919; Tue, 30 Apr 2013 10:57:40 -0700 (PDT) Received: by 10.112.130.132 with HTTP; Tue, 30 Apr 2013 10:57:40 -0700 (PDT) In-Reply-To: <51800539.7010807@sugarcrm.com> References: <1367221266.2723.181.camel@guybrush> <517E9F47.4080100@sugarcrm.com> <51800539.7010807@sugarcrm.com> Date: Tue, 30 Apr 2013 19:57:40 +0200 Message-ID: To: Stas Malyshev Cc: Amaury Bouchard , =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Julien Pauli , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Continued try blocks From: pierre.php@gmail.com (Pierre Joye) hi, On Tue, Apr 30, 2013 at 7:54 PM, Stas Malyshev wrote: >> You may have a lib/object/chunk of code which raises exceptions, because >> its developer thought some error is not recoverable; but when you use >> it, you don't want to break your program's execution. > > That's why you have try/catch. Exactly, I cannot agree more here. This proposal brings yet again exceptions for control flow, which is really not what they are designed for (no matter the language, or almost all languages). An exception can be handled and the program can continue? Catch it, any other tricks bring control flow using exception and that's really a bad idea. Cheers, -- Pierre @pierrejoye | http://www.libgd.org