Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83261 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77451 invoked from network); 20 Feb 2015 04:01:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 04:01:15 -0000 Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:8175] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/00-11624-881B6E45 for ; Thu, 19 Feb 2015 23:01:14 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 7030E4B0140; Fri, 20 Feb 2015 05:01:07 +0100 (CET) Reply-To: To: "'Levi Morrison'" , "'internals'" References: In-Reply-To: Date: Fri, 20 Feb 2015 05:01:05 +0100 Message-ID: <04db01d04cc1$d9925770$8cb70650$@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQMXHS9CzopqIInM/HSYV4fHvuOWhAEbPl8VmmJr1iA= Content-Language: fr X-Antivirus: avast! (VPS 150219-1, 19/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 From: francois@php.net (=?utf-8?Q?Fran=C3=A7ois_Laupretre?=) Hi Levi, Just my opinion : Add 'resource', 'object', 'scalar', 'mixed', 'numeric' Remove 'double' (avoid this alias if we decide to encourage 'float' = everywhere) Not sure we'll use Boolean and integer but reserve also. 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 ! Regards Fran=C3=A7ois > -----Message d'origine----- > De : morrison.levi@gmail.com [mailto:morrison.levi@gmail.com] De la = part > de Levi Morrison > Envoy=C3=A9 : vendredi 20 f=C3=A9vrier 2015 02:36 > =C3=80 : internals > Objet : [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 >=20 > Sorry: Apparently hit some hotkey for send. >=20 > On Thu, Feb 19, 2015 at 6:35 PM, Levi Morrison wrote: > > Dear Internals, > > > > 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: >=20 > int, integer > bool, boolean > true, false > float, double > string > null >=20 > It does not make them keywords; it only prevents them from being used > in class, interface, trait and namespace names. >=20 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php