Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83785 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47067 invoked from network); 25 Feb 2015 13:33:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2015 13:33:32 -0000 Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.48 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.192.48 mail-qg0-f48.google.com Received: from [209.85.192.48] ([209.85.192.48:60972] helo=mail-qg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/51-62407-B2FCDE45 for ; Wed, 25 Feb 2015 08:33:32 -0500 Received: by mail-qg0-f48.google.com with SMTP id a108so2853458qge.7 for ; Wed, 25 Feb 2015 05:33:27 -0800 (PST) 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=VcPZQhFEwQnznfj8ExkZPgUAn5ltRaEVGTlfcu/B1WA=; b=Li7hC7zEtvRbvBxpSzN7ohTuANTxxubxUMUHLNgunCedJjgTib0M985jbOx/WUEIed TurslTrugIHcvPv53JcFoUrfqDcLu09ETcUE7Lv7G2CLto110IE75v3itrAaZNvG5m0n lbmfrB3fZz3PUKx47e9KMKOblzOnrDOZyFTiRWrthG94MvGFPwcMaxMH+3L1iqs5UDnU AqbVgCSz3xS+aw4Sh850L9zA2Yk9qsNHWMKBmDUxJbvSuf0v/fMLvEXCMJElnAo6hZSS G7dBSiP2Xjw+wek8OW1ghUEeVZOevx3aCZGVfuYZDpObbYKDCrqs/Fz6ki5VIYkYb2v4 ifTw== MIME-Version: 1.0 X-Received: by 10.229.241.137 with SMTP id le9mr7182265qcb.20.1424871207410; Wed, 25 Feb 2015 05:33:27 -0800 (PST) Received: by 10.96.160.99 with HTTP; Wed, 25 Feb 2015 05:33:27 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Feb 2015 14:33:27 +0100 Message-ID: To: Yasuo Ohgaki Cc: Trevor Suarez , Dmitry Stogov , Dan Ackroyd , Nikita Popov , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC] Exceptions in the engine From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Fri, Feb 20, 2015 at 8:01 AM, Yasuo Ohgaki wrote: > Hi all, > > On Fri, Feb 20, 2015 at 12:14 AM, Trevor Suarez wrote: > >> I think that naming the new parent exception something like "Throwable" or >> "Catchable" (as Nikita previously suggested) would be a bit more concise in >> meaning than "BaseException". You may not have even meant that name as a >> formal proposal, but I figured I'd weigh in regardless. :P >> > > I think they probably should use namespace... > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net Hello, yes, finally introducing namespaces into PHP core stuff would definitely be beneficial. Polluting the global namespace more and more should be avoided. I would gladly see something like this: Php\Throwable - Php\Exception - Php\ParseException - Php\EngineException Of course, the \Exception would need to be kept (maybe as an alias to \Php\Exception?), for backwards compability. Regards Pavel Kouril