Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83262 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78948 invoked from network); 20 Feb 2015 04:04:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 04:04:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:45959] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/50-11624-142B6E45 for ; Thu, 19 Feb 2015 23:04:17 -0500 Received: by labge10 with SMTP id ge10so3675730lab.12 for ; Thu, 19 Feb 2015 20:04:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cX8aemKrljr2bBTCf//9eL9HfgzX/PSZw2iSlu7rKXQ=; b=KQOM1duETgKhzQjBk4N6LoyiFw7nhRcdg26Lg2JHjjSf2zBoLpZp8S1Hl6Z1jvZpug llR6Xd2+34uHDSc12JjqXtSlSu10jwiufDj/2/2VsC0vWgfkIz2gxdhO1+cd9cCAtg16 K/USVS5zk/upR/kbxptTPS5dgt5iYGJLMN6ypFi3rqOsWg7WrDzPUI3/Pfer3nVn+s5X WrQbZ9frn9kCZTFzuw01ZiuL52PmG3szt8fgiDHS3MgrOjjeSIT7fz1Qe12cQVegU6cE tbVkNvIE17hDG2ZMK6uuazNFTIIIqIxVbR+9vvNc4BobH9l4QCRz+7r8tAYTMGgDSGWN spaQ== X-Gm-Message-State: ALoCoQkWyIdBk2UcKvyst1B9+ZdcAh3gwd022y6uHekdesGp3D8ZLeRjjuH0cAERbW+NGhH9Eaxh MIME-Version: 1.0 X-Received: by 10.112.235.10 with SMTP id ui10mr6815577lbc.77.1424405054022; Thu, 19 Feb 2015 20:04:14 -0800 (PST) Sender: php@golemon.com Received: by 10.112.38.73 with HTTP; Thu, 19 Feb 2015 20:04:13 -0800 (PST) X-Originating-IP: [2620:10d:c0a1:1100::2071] In-Reply-To: References: Date: Thu, 19 Feb 2015 20:04:13 -0800 X-Google-Sender-Auth: zu9clyhOB6hRpZLC5H6hd3D5MrI Message-ID: To: Levi Morrison Cc: internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 From: pollita@php.net (Sara Golemon) On Thu, Feb 19, 2015 at 5:36 PM, Levi Morrison wrote: > I would like to discuss a small RFC for reserving more types in PHP 7: > https://wiki.php.net/rfc/reserve_more_types_in_php_7 > > Essentially it proposes to reserve: > > int, integer > bool, boolean > true, false > float, double > string > null > +1 -- I was planning to put this up today and got waylaid. On Thu, Feb 19, 2015 at 8:01 PM, Fran=C3=A7ois Laupretre = wrote: > > Add 'resource', 'object', 'scalar', 'mixed', 'numeric' > > Remove 'double' (avoid this alias if we decide to encourage 'float' every= where) > > Hope 'null', 'true', and 'false' can technically be used as type hints. > If not, bad news, especially for null. Love 'int|false' as return type ! > If I were to change one thing, it'd be to add some metatypes (possibly as= a separate vote): > I also agree with everything Fran=C3=A7ois said. Reserve these additional types (possibly in a separate vote, up to you). -Sara