Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84788 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85699 invoked from network); 14 Mar 2015 22:42:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2015 22:42:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.161 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.161 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.161] ([81.169.146.161:34535] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/C0-13042-639B4055 for ; Sat, 14 Mar 2015 17:41:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1426372915; l=7101; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=amjxL8Dy3WAoScbfpXOGl/XoJ2k8jE6UJWlqjm81lfc=; b=fZy6/0tmwJxNnUenjuZYwApPjJa6P8sCs2lR4+4VASjF37EaZ5aXrQoononOWxIbhld YYVZQRHkKetFlvaFeQYeHlZJsmSdbMAxddpUkzvSTXgxneeoMfrE6ipd1Agw3B6uelmmN k79ZWbKFUwTB4QD3J1x96q0KTw2W+z6puIo= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3c6 X-RZG-CLASS-ID: mo00 Received: from mail-wg0-f44.google.com ([74.125.82.44]) by smtp.strato.de (RZmta 37.4 AUTH) with ESMTPSA id 602c3fr2EMftHZR (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Sat, 14 Mar 2015 23:41:55 +0100 (CET) Received: by wgbcc7 with SMTP id cc7so13161224wgb.0 for ; Sat, 14 Mar 2015 15:41:55 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.181.9.107 with SMTP id dr11mr64006101wid.40.1426372915410; Sat, 14 Mar 2015 15:41:55 -0700 (PDT) Received: by 10.27.222.1 with HTTP; Sat, 14 Mar 2015 15:41:55 -0700 (PDT) In-Reply-To: <5504B69C.2070903@lerdorf.com> References: <5504B69C.2070903@lerdorf.com> Date: Sat, 14 Mar 2015 23:41:55 +0100 Message-ID: To: Rasmus Lerdorf Cc: Philip Sturgeon , Bob Weinand , =?UTF-8?Q?Pavel_Kou=C5=99il?= , Levi Morrison , internals Content-Type: multipart/alternative; boundary=001a113602acf0bff905114752e7 Subject: Re: [PHP-DEV] [RFC][PRE-VOTE] Reserving More Types in PHP 7 From: me@kelunik.com (Niklas Keller) --001a113602acf0bff905114752e7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2015-03-14 23:30 GMT+01:00 Rasmus Lerdorf : > 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 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 > the 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 > Rasmus, the context sensitive lexer doesn't change anything for Drupal. Support for class names has been dropped, see https://wiki.php.net/rfc/context_sensitive_lexer#rejected_features Regards, Niklas --001a113602acf0bff905114752e7--