Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86037 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30847 invoked from network); 29 Apr 2015 22:49:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2015 22:49:09 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:36591] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/50-29050-4EF51455 for ; Wed, 29 Apr 2015 18:49:09 -0400 Received: by wizk4 with SMTP id k4so197922947wiz.1 for ; Wed, 29 Apr 2015 15:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=1sDjiFzhE3vQ9Qst5CsNhWfqzUDGWKBk+Q3orksqE8A=; b=K2F6W58VsXmIIWIDY7+d4HCIfPaSyoHVUShRV9lU6gLMLxwYrF3Cfaef0bI8TbqHfn 95FXqLZZgQcZPviI7k2z9FJ+Y2WTw2qJ6PMtBOXWTaiqiQeCMgomTGWCO1Z8CmjixMK4 TREXmv8qwPUJ2Cm1SLPWzaqUsf9qUxNq9XqTD9vmCPqpMKZyrM/FV1M8QK4OlcVNeUjb tbkrOXvZwIG4b5KFz4+/1IPLJjYH9kBLpAOLD40YV6qfmTIt/+SyvMEb64R3fyi/Gjjr CkH3PE2i7YyFtMkfJCcOYI2hL+A3vz0w2cIQeAvQhPNGa7r8H5Ntkb+00fpRAmSrxWco OfPg== X-Received: by 10.181.13.44 with SMTP id ev12mr9855011wid.17.1430347745616; Wed, 29 Apr 2015 15:49:05 -0700 (PDT) Received: from [192.168.1.27] (34.Red-79-153-251.dynamicIP.rima-tde.net. [79.153.251.34]) by mx.google.com with ESMTPSA id wo10sm551561wjb.35.2015.04.29.15.49.04 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Apr 2015 15:49:04 -0700 (PDT) Message-ID: <55415FDF.1030204@gmail.com> Date: Thu, 30 Apr 2015 00:49:03 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: internals@lists.php.net References: <55415E10.7040908@gmx.de> In-Reply-To: <55415E10.7040908@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Reserve even more type hints RFC From: keisial@gmail.com (=?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?=) On 30/04/15 00:41, Christoph Becker wrote: > Hi everybody! > > I've noticed that the "Reserve Even More Types in PHP 7" RFC[1] has been > moved to "Process and Policy" with the comment "needs no impl". > However, the RFC states: > > | This RFC does not fully reserve them as keywords; it only prohibits > | their usage as class, interface and trait names. > > In my opinion, this has to be enforced by throwing a fatal error > ("Cannot use '*' as class name as it is reserved"), whenever one of the > reserved identifiers (resource, object, mixed, numeric) is used as > class, interface or trait name. > > Relying on documentation only seems to be insufficient to me. Consider > a developer not reading the documentation and facing the issue that > his/her code might break with PHP 7.1 (i.e. a minor version). +1 If not a fatal, it should be at least a warning. Doc-only keyword reservation won't be noticed.