Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84812 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54558 invoked from network); 15 Mar 2015 10:00:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 10:00:16 -0000 Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.50 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.192.50 mail-qg0-f50.google.com Received: from [209.85.192.50] ([209.85.192.50:34678] helo=mail-qg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/C3-29489-52855055 for ; Sun, 15 Mar 2015 05:00:11 -0500 Received: by qgh62 with SMTP id 62so19051731qgh.1 for ; Sun, 15 Mar 2015 02:59:59 -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=J1CpZvYaBL+sliLeS/l4r5t6eRe0tgfC83aB8roR4Ro=; b=CGqkNVdhwfFvVCNAfNOC2r95UlOxIjQl7Dm217ORUIXpgU0Y+4pkY5zo7yzpsQNb7C 7nMA12HbEd7jZKVRHzd2NGkH/FpReI/d6QSxfCCEIGTrkQPjRg46HSHwkwQl8w8A4Wjj StfZUy5FULHGvjol0A7F6fDOqSqfqt0jZQROK+QuO2Jafm8inLLpzRzHOFC90Bu2Qdiq OfQ+R+MG+R0V27pAt8Mv5EOamIyhUzYc4GUXuO1yBgoDZ8BuiBdHUI2Ti9rho6lJnoQL yVXwAXL+hOK800Fi46dhdvqDhierGFeH6/awckfgKsmmuoo2Re3LMMOYG4xRtDuo1zQa ebUA== MIME-Version: 1.0 X-Received: by 10.55.31.101 with SMTP id f98mr69466028qkf.34.1426413599065; Sun, 15 Mar 2015 02:59:59 -0700 (PDT) Received: by 10.96.160.99 with HTTP; Sun, 15 Mar 2015 02:59:59 -0700 (PDT) In-Reply-To: References: Date: Sun, 15 Mar 2015 10:59:59 +0100 Message-ID: To: Bob Weinand Cc: Levi Morrison , 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: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Sat, Mar 14, 2015 at 12:38 PM, 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. 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 im= plementation detail=E2=80=A6] > > Also, he doesn't call them anywhere types, it's just the title. > > Bob Hello, a union type would be an union of types - so it should be int|bool, shouldn't it? (Also, I don't personally like the idea of union types in general, but it's not relevant to the current RFC, so I won't comment more on that issue.) Still, maybe the title of the RFC should change to "Reserve More Keywords in PHP 7", so it's not misleading? PS: Thanks for the info about internal stuff, didn't know about that. :) Regards Pavel Kouril