Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62625 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14620 invoked from network); 1 Sep 2012 09:34:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2012 09:34:45 -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:41139] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/E1-03671-4B6D1405 for ; Sat, 01 Sep 2012 05:34:44 -0400 Received: by iamm10 with SMTP id m10so6739874iam.29 for ; Sat, 01 Sep 2012 02:34:41 -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=NfNhHEc9tNQj69OVJjHfIREWCS1WGQCDB9GBl8IXqN8=; b=hdRKd6uemqFsoZBAfcWFVNGtgHRFW09Tyy2WeE6LyDiDfCHRgKNGcrW3FfvOkCBpOt NoL5QldP+2Qhzd9pXi/K3efnKsI0wfD9Tl26U9vq1uSYLWpjslgA+wEWL1nhRZcH+Pi4 NEwxBgh+C4YVZZD05LPDLb+W+FOciz6whvI+sTPbRXCj9uKeM83B0n5HefFUfEPhT+uO bwBqAEPaguAM7a4Za/MVe7zfRMJ+MMl5pX+8jNoXyk3hIQWqzj0rGkQTVSm8qq2feZWg XQa/OpVlrVTTMM6w+sr6wh0gRV/TRoBJbMvVHhwXx5IEzHVnWUmTmMMbUiYmBwE9jBn1 4/vQ== MIME-Version: 1.0 Received: by 10.50.159.130 with SMTP id xc2mr5572446igb.33.1346492081195; Sat, 01 Sep 2012 02:34:41 -0700 (PDT) Received: by 10.64.60.40 with HTTP; Sat, 1 Sep 2012 02:34:41 -0700 (PDT) In-Reply-To: <5040F4D9.80206@sugarcrm.com> References: <5040DC47.8000305@ajf.me> <5040F4D9.80206@sugarcrm.com> Date: Sat, 1 Sep 2012 11:34:41 +0200 Message-ID: To: Stas Malyshev Cc: Ferenc Kovacs , 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 Stas, On Fri, Aug 31, 2012 at 7:31 PM, Stas Malyshev 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