Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86342 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70971 invoked from network); 21 May 2015 12:46:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2015 12:46:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.52 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.52 mail-qg0-f52.google.com Received: from [209.85.192.52] ([209.85.192.52:35960] helo=mail-qg0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/B2-52687-893DD555 for ; Thu, 21 May 2015 08:46:16 -0400 Received: by qget53 with SMTP id t53so38449211qge.3 for ; Thu, 21 May 2015 05:46:13 -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; bh=3OyBcZMnkFNJrZJ/sanpFTtzI+IN/Ht9a97TH2ydYxM=; b=HZjOsGSedSuA7zSMdoklCdAq3uUVwxUOlQ3jaXWnHikCwEuFFAXRUaY8hnyKEN89ON OZB+s/GAtLm9YuJNCGUYZwCMpn8V3rUXa5qXEEzxd8hnRdSYtsEYtEoA/Bc6sat1KbQH //m9HZsgbtM/21qBUdDqAbrD13MkGsc7JkAFueGC9m9ZLoSYKATyw1/qm91r1RZIC3zB z5sNEkXc2I1tCWsMyoCrAle9kEt7TJmBB770fqrvSCVcEID0haZwrudC5RRhZjzDsip3 +MvpWt27Q43eYFvyXJYN83MQdB9fppo3VcPlKBuEPmC2xyaTQQo/+jqn3FtGsSDIAxEO OuLg== MIME-Version: 1.0 X-Received: by 10.140.107.165 with SMTP id h34mr3206870qgf.63.1432212373628; Thu, 21 May 2015 05:46:13 -0700 (PDT) Received: by 10.96.127.166 with HTTP; Thu, 21 May 2015 05:46:13 -0700 (PDT) Received: by 10.96.127.166 with HTTP; Thu, 21 May 2015 05:46:13 -0700 (PDT) In-Reply-To: <1728446955.140561.1432207869694.JavaMail.root@zimbra71-e12.priv.proxad.net> References: <1728446955.140561.1432207869694.JavaMail.root@zimbra71-e12.priv.proxad.net> Date: Thu, 21 May 2015 19:46:13 +0700 Message-ID: To: flaupretre@free.fr Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=001a1139594ec5ef45051696ed9b Subject: Re: [PHP-DEV] Soft-reserve "void" class name From: pierre.php@gmail.com (Pierre Joye) --001a1139594ec5ef45051696ed9b Content-Type: text/plain; charset=UTF-8 On May 21, 2015 6:45 PM, wrote: > > Hi, > > > De: "Nikita Popov" > > > > 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 release. > > "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 introduce 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 when an > > RFC comes up, however we need to keep both options open until then. > > (Currently only "null" is reserved.) > > May I repeat my arguments to have this reservations enforced by a warning message ? 'Soft' reservation > is easier but it is not enough. If we give a special meaning to one of these names in a 7.x release, > we will introduce a BC break, whatever the documentation states, because that's the definition of a BC > break : software that works fine in 7.0 and does not work the same in 7.x. Do we want to guarantee BC on > minor versions ? If we don't enforce a check on reserved class names, IMO, we can't. Once again, this is > a short-term half-baked solution we'll pay later. > > PS: If you're OK, I am ready to implement the check. Also I am fine to reserve it, I am not in favor of doing any time in 7.x. If it means to do it now, then let do it now. Cheers, Pierre --001a1139594ec5ef45051696ed9b--