Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84841 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13079 invoked from network); 15 Mar 2015 15:56:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 15:56:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.173 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.173 mail-ob0-f173.google.com Received: from [209.85.214.173] ([209.85.214.173:33367] helo=mail-ob0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/9E-29489-1ABA5055 for ; Sun, 15 Mar 2015 10:56:17 -0500 Received: by obcxo2 with SMTP id xo2so19932934obc.0 for ; Sun, 15 Mar 2015 08:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=KzxDy/+GC+x+GIer6GNkl38q3hk+2DoryEZtnud2LJs=; b=Q93ON5aYJELBdpnUWc08E6B++9zPAT2Du0upTDQt09YUF0hOI+J3QfKtx6UDb9QaVd zlYgj2VWY4yidPgWUFCFaoNEW7AMX2weVgLQR/rcip3zddrmETNgFODKzdUKurK8tz9u ePGl1rcMwkIzjPsJic0v8LpQ58utWNRSdwg0DHcXdqONytZMRhhzsxOXf1lS3KRnfDuZ 9/c8vvukxiJn7x8XiiJBT2UDULNDIKFGH7DqPQnA5set6vsIg7uafJmLisILxku4It/+ +Mn8LRUJL/LDFdQWs1bQSNPMIV8+/X0agCddU5gS8WvnJCgDvKBMekR0AGS/msOJUq41 NAjg== MIME-Version: 1.0 X-Received: by 10.202.76.207 with SMTP id z198mr18402956oia.56.1426434973684; Sun, 15 Mar 2015 08:56:13 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.90.74 with HTTP; Sun, 15 Mar 2015 08:56:13 -0700 (PDT) In-Reply-To: <5504B69C.2070903@lerdorf.com> References: <5504B69C.2070903@lerdorf.com> Date: Sun, 15 Mar 2015 09:56:13 -0600 X-Google-Sender-Auth: hSTpGFL_tNLSIheInmImzYpmYDM Message-ID: To: Rasmus Lerdorf Cc: Philip Sturgeon , Bob Weinand , =?UTF-8?Q?Pavel_Kou=C5=99il?= , internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][PRE-VOTE] Reserving More Types in PHP 7 From: levim@php.net (Levi Morrison) On Sat, Mar 14, 2015 at 4:30 PM, Rasmus Lerdorf wrote: > On 03/15/2015 07:31 AM, Philip Sturgeon wrote: >> On Sat, Mar 14, 2015 at 7:38 AM, Bob Weinand wrote= : >>>> 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 the >>>>> 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 am >>>>> 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. i= t's a >>>> value? >>>> >>>> Regards >>>> Pavel Kouril >>> >>> These aren't types. But useful for e.g. union types (int|false). [By th= e 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 >>> >> >> 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 > > I respect this opinion, though I disagree. I do agree that breaks in backwards compatibility should not be taken lightly; I think we just disagree on the magnitude of both the breaks and the gains.