Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85113 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82907 invoked from network); 17 Mar 2015 07:08:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2015 07:08:55 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.182 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.220.182 mail-vc0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:64355] helo=mail-vc0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/F0-11855-703D7055 for ; Tue, 17 Mar 2015 02:08:55 -0500 Received: by mail-vc0-f182.google.com with SMTP id kv19so1696221vcb.13 for ; Tue, 17 Mar 2015 00:08:53 -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=UaZiDno71eCdGH5ZpkFjHhfxWxwhfuo09TwYV/vBhTs=; b=zNwB/YBWriuCpRwlNiF+lNia1gVZDFRwcuO+SSLUe0dHBLOxhgNYhnIWLDUGZltSbg aZczQZIOemZpCtqUGweFksjOnn5O5C9vugOdbUrvIS8cdOQd+oQisw8rM0njsfpHvrFP IV5NoQcUKxomy5kRQhamulrfAvK1iIkHEEAm0f0fHIeBZYJmDOt4x0LhkxUyfYguNumV 3DWi/2XcK5TAQQRChDKzfBqQAUzkZOs+p6KSOMa66Af0rgjhvp8gEttQW78HXEj9LunU iGmly3fIrV/16hDm8Tq1TCMdCgY6DTRauS6istMpYhcoTGBufw1sJlYqVzzdl/62a9pH MK+A== MIME-Version: 1.0 X-Received: by 10.52.162.72 with SMTP id xy8mr66565822vdb.12.1426576133040; Tue, 17 Mar 2015 00:08:53 -0700 (PDT) Received: by 10.52.177.7 with HTTP; Tue, 17 Mar 2015 00:08:52 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Mar 2015 07:08:52 +0000 Message-ID: To: Dan Ackroyd Cc: Sara Golemon , PHP internals Content-Type: multipart/alternative; boundary=089e01628326a7af75051176a334 Subject: Re: [PHP-DEV] [VOTE] Reserve even more type hints From: leight@gmail.com (Leigh) --089e01628326a7af75051176a334 Content-Type: text/plain; charset=UTF-8 On 16 March 2015 at 23:37, Dan Ackroyd wrote: > > In particular the keywords 'Resource' and 'mixed' seem to have limited > need to be reserved. I don't believe there has been any suggestion > that either of these would actually be used as types for PHP 7.x. So > making them be unusable seems to be a large BC hit for no gain for > people who currently have classes that use them > I agree, mixed seems to serve no purpose (just don't hint the parameter, same result). Resource is something we're hopefully going to phase out over time as they get replaced with objects (like Nikita already did with GMP, and hopefully will happen to streams some time between now and 7.1 :)). It's possible that people are voting yes to reserve these two words, > without fully considering whether they should be reserved or not. I > can see that all of 'object', 'scalar', and 'numeric' have been > proposed as part of future improvements to PHP's type system. > I don't really like scalar or numeric (but I'm in the strict types camp and I think if union types ever make it in, they should be user definable). Object makes sense to me though, apart from resource it's the only one that represents a single underlying type. --089e01628326a7af75051176a334--