Re: Re: Are exceptions allowed in php core?

From: Date: Sat, 01 Sep 2012 09:34:41 +0000
Subject: Re: Re: Are exceptions allowed in php core?
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-62625@lists.php.net to get a copy of this message
hi Stas, On Fri, Aug 31, 2012 at 7:31 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > Hi! > >> The spl ext has exceptions all around, so if would count spl as "core", we >> have exceptions in the core already, so it would be ok to add more >> exceptions where appropriate. > > SPL is not a part of basic language syntax. There are no SPL keywords > and no SPL classes used unless you explicitly instantiate those classes. > So SPL is different. End users do not see nor buy the difference between what is Zend/ or what is ext/spl (or other) and can't be disabled, like SPL. I really think we should consider exceptions, step by step, for the language itself, when it makes sense. And the generators RFC is one case where exceptions make sense (no cross discussion posting, only for the record here). Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#62625) next »