Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72651 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28716 invoked from network); 17 Feb 2014 09:11:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2014 09:11:13 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.54 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.54 mail-qa0-f54.google.com Received: from [209.85.216.54] ([209.85.216.54:48891] helo=mail-qa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/DB-56374-F22D1035 for ; Mon, 17 Feb 2014 04:11:11 -0500 Received: by mail-qa0-f54.google.com with SMTP id i13so21554617qae.13 for ; Mon, 17 Feb 2014 01:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uu0GvIV2rlu6X1mMdkxPT1a+ydgcWkCv6oWp0iwrYCE=; b=TQv7bUYH/6q0ztkGCraw/fn5NVudg4mV2DyILwDut8hO9gngRaHLwgVBW+B7ZpsDg8 qmWQHzvY3XqX88MsKasKyH3IbSvs9SfF55JPJRVjU2Udawe7FVofrjFw4lAGCByBJ24G 3as1RvIocmdWBi1yxnaHAB4H1iKrbeL0y4hSH6vDeuX06h7GSgwzj4ZbeZnFsc2FtmzD /2L+FPxzFtvlNuDrCp77x/cw9MaOkW601zRQFeG8MARAX/vwOTB5LKB1bTDBjnOHguoq Zqqx0A8Asiv/elnI+4wJBaK/4l0EOyDTERfmatUe4cN3qtlUbw2HOqfI7phLwCiRTHEY 4euQ== MIME-Version: 1.0 X-Received: by 10.224.172.4 with SMTP id j4mr519336qaz.85.1392628268517; Mon, 17 Feb 2014 01:11:08 -0800 (PST) Received: by 10.140.96.70 with HTTP; Mon, 17 Feb 2014 01:11:08 -0800 (PST) In-Reply-To: <5301CB23.2090305@lsces.co.uk> References: <5301C3A2.3060506@sugarcrm.com> <5301CB23.2090305@lsces.co.uk> Date: Mon, 17 Feb 2014 10:11:08 +0100 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c2fcca3fcd0d04f2968902 Subject: Re: [PHP-DEV] my take on PHP 6, part 2 From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c2fcca3fcd0d04f2968902 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Feb 17, 2014 at 9:41 AM, Lester Caine wrote: > Pierre Joye wrote: > >> Warnings? Both?), make errors not so damn expensive and fix @ to be much >>> >more lean-and-mean than it is now. >>> >> Kill it could be an option too. I see the need of @ as a design failure. >> > > Is ICU an indication of how this should be handled as well. Being able to > switch exceptions off in intl demonstrates that they may not be necessary= . > > a library which is built around supporting exceptions can work, but currently we have a bunch of code (both in the core and in userland), which doesn't support that. errors can support the execution of the execution, which means allowing to have return values, or emiting multiple errors from the same call, with exceptions you can't do that, as the execution will jump to the next catch block (or to the global exception handler). I don't think I have seen any proposal so far which would solve these issues, yet people still talking about like replacing the current error handling infrastructure with exceptions would be a viable alternative. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c2fcca3fcd0d04f2968902--