Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62709 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11924 invoked from network); 3 Sep 2012 08:12:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 08:12:49 -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.210.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:36071] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/63-25891-18664405 for ; Mon, 03 Sep 2012 04:12:49 -0400 Received: by iamm10 with SMTP id m10so8442092iam.29 for ; Mon, 03 Sep 2012 01:12:46 -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=T3VRgo7a5FcQztg6DqTEnlGDVn4zYET1hkZ12R7Lqg4=; b=HgucGMfiV/VVi2O2FIQNDQDNswyQWi6qs5uLYpTKKNpvv+nclBL82dxKVuW7ZZuV51 4gOf9GbATIE5hgKN+8jXtT/Nh2BJUGqJ26nLaLW8G/mgcqi349OTommUs+WbhAUeF94Y Tzp89VQgUnnT3DBHBvbqlukHrQ6OOC5FGjDoQq1kcafeRUTtqIu8fHhD+khorszGywL9 teCPOwfX86zgWFtTxHAFalfNXl9eeYcc5LgbSamCWyfmhwog2IQ8u4DTv/106t18Q8dP Xb45jWvu6khYpSUHJLkkCXTYI9sTj5ynZrysvA6EgiwDZkygjrhhXwHI+VgzCDLcCSm8 CoTQ== MIME-Version: 1.0 Received: by 10.50.219.161 with SMTP id pp1mr10002321igc.19.1346659966130; Mon, 03 Sep 2012 01:12:46 -0700 (PDT) Received: by 10.64.60.40 with HTTP; Mon, 3 Sep 2012 01:12:46 -0700 (PDT) In-Reply-To: <5042946A.80204@sugarcrm.com> References: <5040DC47.8000305@ajf.me> <5040F4D9.80206@sugarcrm.com> <5042946A.80204@sugarcrm.com> Date: Mon, 3 Sep 2012 10:12:46 +0200 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Are exceptions allowed in php core? From: pierre.php@gmail.com (Pierre Joye) hi! On Sun, Sep 2, 2012 at 1:04 AM, Stas Malyshev wrote: > Hi! > >>> 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. > > Of course they'd see it. Here it goes again: "There are no SPL keywords > and no SPL classes used unless you explicitly instantiate those > classes". You can not just write some plain PHP syntax and end up having > SPL class. If you use SPL class, you must do "new SplSomeClass" or > something similar. It has nothing to do with disabling. They are seen and promoted as core features. Whether we like that idea or not is not really relevant. We messed that up by making most of the "Standard" PHP Library an extension for only political and licensing reasons. >> I really think we should consider exceptions, step by step, for the >> language itself, when it makes sense. And the generators RFC is one > > We should consider them, but we should not do it in ad-hoc manner. It > doesn't work ad hoc - this is exactly what keeps giving PHP users grief > and PHP as a project reputation of environment that makes no sense - > introducing stuff in random places without regard to how other parts of > the language work. We can't really change existing code without breaking everything out there. So we somehow have to do it on a case by case basis or for new stuff only. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org