Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82414 invoked from network); 14 Mar 2015 22:31:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2015 22:31:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.192.181 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.192.181 mail-pd0-f181.google.com Received: from [209.85.192.181] ([209.85.192.181:35115] helo=mail-pd0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/20-13042-4A6B4055 for ; Sat, 14 Mar 2015 17:31:02 -0500 Received: by pdbop1 with SMTP id op1so19750761pdb.2 for ; Sat, 14 Mar 2015 15:30:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=5t2PO2XMHJWCwOKkI4FE10JNj7dHnGTloaNUyNVGw0M=; b=frxSwn/2PqVL9bmW2pwjL3zJ+ofNZudvtvfSTMU4IbPCfAcZmyL/7s25r7mH7Gq7q5 JiTEOc/0YtwbLCNt3DhsPCY2ZyleTnhalcyuP9tj/Pdt2ZYK8US8tm1eLOCrKIqUmqhy uyBEi49uOpevHgLogVcKBu9ugI8EIRPDCOZxe+miwuEtYRPq0NVugHvxrGm+clIg5i75 JRG1dQJeSbQwmVPN31pRg4UNqrEFsu22iZ8NPQdvUexhEL7Kak5G4Ch24TRsPIer6FlY 8bNYls+OZvhfTQpClOdW2Aaxso0tfExuXmjXb/DgbFNn4Yl1EMFmFDPWyS/BrKmGPqmn ewFg== X-Gm-Message-State: ALoCoQmRTEFaxcN4z/JfEMaSctIPHZwgjNov9W4YWjDCVULy8mAZrZcdRMdfmcRs61tyv863HYAr X-Received: by 10.70.133.2 with SMTP id oy2mr59945678pdb.169.1426372257915; Sat, 14 Mar 2015 15:30:57 -0700 (PDT) Received: from [192.168.200.14] ([123.254.126.130]) by mx.google.com with ESMTPSA id a4sm9843067pdf.57.2015.03.14.15.30.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Mar 2015 15:30:56 -0700 (PDT) Message-ID: <5504B69C.2070903@lerdorf.com> Date: Sun, 15 Mar 2015 09:30:52 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Philip Sturgeon , Bob Weinand CC: =?UTF-8?B?UGF2ZWwgS291xZlpbA==?= , Levi Morrison , internals References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0CmAxHEEXgFFvGolOVHKhGL8fLk4Xt8R6" Subject: Re: [PHP-DEV] [RFC][PRE-VOTE] Reserving More Types in PHP 7 From: rasmus@lerdorf.com (Rasmus Lerdorf) --0CmAxHEEXgFFvGolOVHKhGL8fLk4Xt8R6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/15/2015 07:31 AM, Philip Sturgeon wrote: > On Sat, Mar 14, 2015 at 7:38 AM, Bob Weinand wrot= e: >>> Am 14.03.2015 um 10:21 schrieb Pavel Kou=C5=99il = : >>> >>> On Saturday, March 14, 2015, Levi Morrison wrote: >>>> RFC Link: https://wiki.php.net/rfc/reserve_more_types_in_php_7 >>>> >>>> The proposal has changed from the original. It no longer reserves th= e >>>> aliases out of the interest of reserving the smallest useful, >>>> uncontroversial subset. Some people want to remove aliases for these= >>>> types so in the interest of being as uncontroversial as possible I a= m >>>> no longer proposing to remove them. >>>> >>>> This will go into voting on March 15th unless something comes up >>>> between now and then to persuade me otherwise. >>>> >>>> -- >>>> PHP Internals - PHP Runtime Development Mailing List >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>>> >>> >>> Hello, >>> >>> why do you consider a "true" and "false" as a type? It's not a type. = it's a >>> value? >>> >>> Regards >>> Pavel Kouril >> >> These aren't types. But useful for e.g. union types (int|false). [By t= he way they're internally handled as different types=E2=80=A6 but that's = an implementation detail=E2=80=A6] >> >> Also, he doesn't call them anywhere types, it's just the title. >> >> Bob >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >=20 > This is a solid plan. Vote this and everyone should +1 it, so if this > scalar squabble results in a a 0-0-0 score we can at least add scalars > later. This is not quite that obvious I don't think. If https://wiki.php.net/rfc/context_sensitive_lexer isn't ready in time for 7.0 and we don't need to reserve these for one of the STH RFCs then we should hold off and do it alongside the context sensitive lexer change or we are going to needlessly break a ton of code including Drupal8: https://github.com/drupal/drupal/blob/8.0.x/core/lib/Drupal/Component/Uti= lity/String.php#L15 -Rasmus --0CmAxHEEXgFFvGolOVHKhGL8fLk4Xt8R6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlUEtpwACgkQlxayKTuqOuDgCwCfS5UPzhP7AJ5AyPa0sLocgdrT KU8AnArbM0f9Y/SZQZy9RgA8k7hDSjw7 =NNHp -----END PGP SIGNATURE----- --0CmAxHEEXgFFvGolOVHKhGL8fLk4Xt8R6--