Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58191 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56278 invoked from network); 27 Feb 2012 20:54:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 20:54:36 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:44979] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/C5-29394-B8DEB4F4 for ; Mon, 27 Feb 2012 15:54:36 -0500 Received: by wibhm4 with SMTP id hm4so3571014wib.29 for ; Mon, 27 Feb 2012 12:54:33 -0800 (PST) Received-SPF: pass (google.com: domain of kris.craig@gmail.com designates 10.180.99.7 as permitted sender) client-ip=10.180.99.7; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kris.craig@gmail.com designates 10.180.99.7 as permitted sender) smtp.mail=kris.craig@gmail.com; dkim=pass header.i=kris.craig@gmail.com Received: from mr.google.com ([10.180.99.7]) by 10.180.99.7 with SMTP id em7mr31968755wib.7.1330376073560 (num_hops = 1); Mon, 27 Feb 2012 12:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+IhduCUzEEdE4v7N9hT5yGRMIz0vmK+FgTXPF96/ZnA=; b=Fwrstf7xgvmXa3IMBmxdtBQlSu1c17FUcdZxbjy2aLyD2NxupfdDP0O8TNZ+ZYWdtL eIHxaeg967B34i6qdvE96bst01aTswvKrD21fGWlgmVLQquMyA6Bn9dFURL6JZcqFxkw adVs/r+Wx4N8rxygEdxkk8eq46kJVJ9ezXm8s= MIME-Version: 1.0 Received: by 10.180.99.7 with SMTP id em7mr25338402wib.7.1330376073474; Mon, 27 Feb 2012 12:54:33 -0800 (PST) Received: by 10.223.75.146 with HTTP; Mon, 27 Feb 2012 12:54:33 -0800 (PST) In-Reply-To: <1330373303.2159.51.camel@guybrush> References: <41055a3dd36db02d3d09012231787a8d.squirrel@www.l-i-e.com> <4F4BB316.6080600@gmail.com> <2b2726ae802163c88909a8e4e161d246.squirrel@www.l-i-e.com> <1330369748.2159.49.camel@guybrush> <1330373303.2159.51.camel@guybrush> Date: Mon, 27 Feb 2012 12:54:33 -0800 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: Gustavo Lopes , Richard Lynch , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d0418280446f2fb04b9f85163 Subject: Re: [PHP-DEV] Scalar type hinting From: kris.craig@gmail.com (Kris Craig) --f46d0418280446f2fb04b9f85163 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm not sure what the precedent is for creating a separate list fork for a specific topic. Can one of you who knows the answer to that respond to Richard's suggestion? As for an RFC, I completely agree. However, it's still a bit too vague to create an RFC that would be of any value. We at least have to brainstorm conceptually where we want to go before an RFC could serve any purpose IMHO= . --Kris 2012/2/27 Johannes Schl=FCter > On Mon, 2012-02-27 at 21:05 +0100, Gustavo Lopes wrote: > > On Mon, 27 Feb 2012 20:09:08 +0100, Johannes Schl=FCter > > wrote: > > > > > On Mon, 2012-02-27 at 13:05 -0600, Richard Lynch wrote: > > >> > > >> I'd have to come up with some OTHER scenario not involving fatal > > >> error, such as: > > >> > > >> strict $db =3D new DB(); > > > > > > The example is wrong. The new operator will always return an instance > of > > > the given class (or there will be an exception). > > > [...] > > > > > > This is not true. The new operator can return NULL. In fact, the intl > > extension uses this extensively: > > ok, internal stuff can do everything it wants. But it shouldn't. Doing > that is really bad and I wasn't aware of that case. :-) > > And since it's bad another example should be used :-) > > johannes > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d0418280446f2fb04b9f85163--