Re: Exceptions Vs Errors

From: Date: Mon, 03 Sep 2012 01:15:28 +0000
Subject: Re: Exceptions Vs Errors
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-62701@lists.php.net to get a copy of this message
Derick, On Sun, Sep 2, 2012 at 1:12 PM, Derick Rethans <derick@php.net> 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

« previous php.internals (#62701) next »