Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86312 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69039 invoked from network); 19 May 2015 18:21:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2015 18:21:01 -0000 X-Host-Fingerprint: 77.193.237.242 242.237.193.77.rev.sfr.net Received: from [77.193.237.242] ([77.193.237.242:24046] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/DC-13816-A0F7B555 for ; Tue, 19 May 2015 14:21:00 -0400 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes References: Date: Tue, 19 May 2015 20:20:53 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/1.0 (Win32) X-Posted-By: 77.193.237.242 Subject: Re: Soft-reserve "void" class name From: bensor987@neuf.fr ("Benoit Schildknecht") Le Tue, 19 May 2015 17:28:34 +0200, Nikita Popov = a = =C3=A9crit: > Hi internals! > > For PHP 7 we soft-reserved a number of class names [1] like "numeric",= so > that we have the ability to introduce them as typehints in a 7.x relea= se. > "Soft" here means that we only document these names as being reserved = and > don't throw an error when they're used. > > I'd like to add "void" to this list, so we have the option to introduc= e a > void return type in PHP 7.x. I've seen some disagreement as to whether= = > this > should be called "void" or "null" - this discussion should be held whe= n = > an > RFC comes up, however we need to keep both options open until then. > (Currently only "null" is reserved.) > > If people think that this requires a vote, I'll open one. > > Thanks, > Nikita > > [1] https://wiki.php.net/rfc/reserve_even_more_types_in_php_7 Hi, While I'm impatient to see "void" in the engine, we should follow the = process rules. This is something that have to go through an RFC. If we = implement it, even a soft reservation, without following the process, it= = opens the door to all kind of dangerous situations. So while I like your idea, it shouldn't be implemented before 7.1 Regards.