Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84859 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45809 invoked from network); 15 Mar 2015 17:54:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 17:54:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:33024] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/05-29489-557C5055 for ; Sun, 15 Mar 2015 12:54:29 -0500 Received: by qcyi15 with SMTP id i15so26770544qcy.0 for ; Sun, 15 Mar 2015 10:54:27 -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:content-transfer-encoding; bh=P6HjA2MMejueUMogZtk6ZI3cTWjiFjHfYT5CKECt9Jc=; b=vmdUsHkUgYQS8cVSe55f36TqMl1B2vcMPixBjhxoOyyI4Gt0Yb+r6yCH5nU7FyJGCE R8IWjiityiQxbGezoLCXH2ctiFy9nWoXB6SMWYt1YuKNhGfOG0bblMCKVvDoc9etpFbJ mHpN3mbwaX6lTjl+JRUPiMVOdby6q9BkHkTenPhGjyyK0J7YLjsAN0h8/6qVxZVw9PCT jqzTUpKpgpLbHw1ZtaPbql+F+foTaW69721DvOa7prXokqHBem0LRGMzhIhFaMXgp/99 C7RMyF/XYSSBCHIgEk4+e4aEX54yot4GoHOUqym/cTCCc1Ootk1SaIe+7zlsK4Z+Uvsd W3dw== MIME-Version: 1.0 X-Received: by 10.140.231.151 with SMTP id b145mr71379282qhc.22.1426442067194; Sun, 15 Mar 2015 10:54:27 -0700 (PDT) Received: by 10.96.160.99 with HTTP; Sun, 15 Mar 2015 10:54:26 -0700 (PDT) In-Reply-To: References: <325E0097-FD7E-4997-A95D-20C62368E162@zend.com> <55031C54.6060802@eliw.com> <7CE491F0-C243-4788-ADA2-5DA9DF1D1168@php.net> <332304ae552bfc635f999a8d73b505f0@mail.gmail.com> <85d81405ee1791efadea83cf734ebce3@mail.gmail.com> Date: Sun, 15 Mar 2015 18:54:26 +0100 Message-ID: To: Anthony Ferrara Cc: Zeev Suraski , Stelian Mocanita , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Basic Scalar Types From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Sun, Mar 15, 2015 at 6:48 PM, Anthony Ferrara wrot= e: > Zeev, > >>> Zeev, allow me to understand how this goes. Bob's discussions on the RF= C >>> started 2 days ago. Based on the current rules, the RFC can only go to >>> vote >>> after 2 weeks. That means in 12 days starting now. >>> >>> So we are either violating the RFC rules by pushing the vote tomorrow o= r >>> we're delaying PHP7 for another 2 weeks maybe yet another TH RFC passes= ? >> >> Bob's RFC is effectively Andrea's v0.1 RFC which was discussed in detail= and >> introduced well over two weeks ago. >> I hope we're not going to go into more and more extremes of playing a la= w >> firm and not an OS project. > > We have minimum discussion periods for a reason. To allow people the > time to review proposals as much as to discuss them. > > On the surface, yes, this looks like Andrea's 0.1 RFC. However, after > looking at it, it's definitely different. There's a very significant > behavior difference between the two: > > Andrea's RFC had the following wording: > >> The only exception to this is the handling of NULL: in order to be consi= stent with our existing type hints for classes, callables and arrays, NULL = is not accepted by default, unless the parameter is explicitly given a defa= ult value of NULL. This would work well with the draft Declaring Nullable T= ypes RFC. > > This proposal has a different behavior here. It explicitly allows > nulls for types: > > function foo(int $abc) { var_dump($abc); } > > Unlike my proposal and any of Andrea's, calling foo(null) will be > int(0) instead of an error. > > This is an important distinction as it basically undermines any > attempt at a nullable RFC, since it makes primitives implicitly > nullable. > > So it's not effectively the original proposal. It does differ in a > very significant detail. This is why we have mandatory discussion > periods. Not for "playing law firm" but for being fair to each other. > > Anthony. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Hello, good catch. Nullable RFC would IMHO help PHP, and underminding it isn't goo= d. Regards Pavel Kouril