Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68822 invoked from network); 3 Sep 2012 01:15:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 01:15:32 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:63207] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/CE-17065-3B404405 for ; Sun, 02 Sep 2012 21:15:32 -0400 Received: by lahl5 with SMTP id l5so3321664lah.29 for ; Sun, 02 Sep 2012 18:15:28 -0700 (PDT) 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=R+GbXhToBxp8qvqtI+cuBgu6ythSHQhnUTf4IOyf4Pc=; b=S+NiUzMDNwDXv2EQ0gaOhDnatxnYeRs9uz9kBA4BMnX3nABIK07PpgFwI9HjgsSRmf S3z4Y9INxzxbt372Qu6PiHKdAPlBxEnhVqOzHm9HV8s3YjyFnwMYll78kYrH8rUYAIop WVilZRQMnl/yEAuHpFufFWBS0nGMJtz3RhLyyXybbRxVNfHcymwAI4injjoWpjlPKw/M uH8rB4ss4DyOLj1jdocnIZOs7BVJBvyQ3qUWy5U9WWd50vPgqKEflLtIPXxs73yK15ux p5hdRSJ2FalvktEloqm3YpI7uUAooVX0ef8cTH2bb58spUErFM7SR531Q3pGBZ23zewF Wdew== MIME-Version: 1.0 Received: by 10.152.144.168 with SMTP id sn8mr12450619lab.1.1346634928769; Sun, 02 Sep 2012 18:15:28 -0700 (PDT) Received: by 10.114.22.1 with HTTP; Sun, 2 Sep 2012 18:15:28 -0700 (PDT) In-Reply-To: References: <50431A98.6020101@ajf.me> Date: Sun, 2 Sep 2012 21:15:28 -0400 Message-ID: To: Derick Rethans Cc: Andrew Faulds , internals@lists.php.net Content-Type: multipart/alternative; boundary=e89a8f234687924bc004c8c1e0e1 Subject: Re: [PHP-DEV] Exceptions Vs Errors From: ircmaxell@gmail.com (Anthony Ferrara) --e89a8f234687924bc004c8c1e0e1 Content-Type: text/plain; charset=ISO-8859-1 Derick, On Sun, Sep 2, 2012 at 1:12 PM, Derick Rethans wrote: > On Sun, 2 Sep 2012, Anthony Ferrara wrote: > > > > I don't wish to derail this thread from the get-go, but what's your > > > opposition to moving to exceptions? > > > > I'm absolutely for moving to exceptions. I asked this question as a > > thought exercise to see 1. If the current error system can be improved, > or > > 2. To identify if it can't, and exceptions really are the better route. > > What you are staying here is really: if we can't improve error handling, > let's break all code out there. Not quite. What I'm saying is that the current situation isn't great, and that we should find a way of fixing it. If it can be done in a BC manner, then great. If not, then so be it. But we should consider alternatives... And there are ways of doing it without breaking "all code out there", similar to a "use strict" token, and treat it separately per file... Etc... I'm not making a proposal yet, just wanted to get a discussion going about the options that we have without immediately jumping to exceptions (I think that's where it will ultimately end up, but wanted to explore options first)... Anthony --e89a8f234687924bc004c8c1e0e1--