Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83335 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79141 invoked from network); 20 Feb 2015 18:22:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 18:22:31 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.48 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.48 mail-qa0-f48.google.com Received: from [209.85.216.48] ([209.85.216.48:52591] helo=mail-qa0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/9A-14173-66B77E45 for ; Fri, 20 Feb 2015 13:22:31 -0500 Received: by mail-qa0-f48.google.com with SMTP id dc16so13578429qab.7 for ; Fri, 20 Feb 2015 10:22:27 -0800 (PST) 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=TbWsaLRXivyHvOWgHUKxYVJTv1YJlV5BvYekPnP51A4=; b=bGeOPo5vrSuauue5VunFOS7/sE7g4vR80RpAyPYGPTNo10SEhmafDd75lvXGRkL3/o Gpi/F45DvB0jBous/7ShQZU2Nka4J2PZiaIOaJsm3x7Iq87yBTK4636YTAaTEZ0TdBcC 4nbYkfNLWrDMr7D3nIPw4idLq4OesKfEKQr4poqp8Vw8NNZJKR5IHornZSP6QbKfFgPS 9afiIGMkwpGs9TxhD5V2R8zvWStzwg8uCJktqLNoRvJd2425Az0bCKrB8Rq+sLdqwTs7 Zw+CqGaplQzrMCZK4yIP+zUEuR0WEy+vHb5AApqAID8GF6CcfkdPyMNicQ40/ZE6nSak nM2Q== MIME-Version: 1.0 X-Received: by 10.229.65.133 with SMTP id j5mr27433113qci.27.1424456547471; Fri, 20 Feb 2015 10:22:27 -0800 (PST) Received: by 10.96.39.195 with HTTP; Fri, 20 Feb 2015 10:22:26 -0800 (PST) Received: by 10.96.39.195 with HTTP; Fri, 20 Feb 2015 10:22:26 -0800 (PST) In-Reply-To: References: <04db01d04cc1$d9925770$8cb70650$@php.net> Date: Fri, 20 Feb 2015 10:22:26 -0800 Message-ID: To: Andrey Andreev Cc: PHP internals , francois@php.net, Levi Morrison Content-Type: multipart/alternative; boundary=001a11339d1e82d15f050f8922f5 Subject: Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 From: pierre.php@gmail.com (Pierre Joye) --001a11339d1e82d15f050f8922f5 Content-Type: text/plain; charset=UTF-8 On Feb 20, 2015 8:11 AM, "Andrey Andreev" wrote: > > Hi, > > On Fri, Feb 20, 2015 at 6:00 PM, Levi Morrison wrote: > > On Fri, Feb 20, 2015 at 4:21 AM, Andrey Andreev wrote: > >> > >> Agree on 'double' though ... if we want to discourage its usage, we > >> might even think of deprecating it. > > > > While deprecating it might be a good course of action, it is out of > > scope of this RFC. I personally think that reserving it is a good way > > to discourage its use: simply reserve it and then don't use it for > > anything. If we decide not to use the aliases if we have scalar types > > and the aliases are reserved this would prevent users from making > > custom types from the aliases. In my opinion this a Good Thing. > > Well, I meant to deprecate is_double(), is_real() and the > corresponding explicit casts. I might be missing other places when > they are used, not sure, but the point would be to stop using these > names for scalar types at all, so that everybody can freely use them > for class/trait/interface names ... I don't think anybody would do > that only for pseudo-scalar hinting objects. > > So, while yes - that's outside of this RFC's scope, reserving them as > keywords would be the opposite of what I had in mind. Right, but it is a yes/no list of options. It makes no sense to have competitive RFCs for such a trivial set of choices. > Cheers, > Andrey. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --001a11339d1e82d15f050f8922f5--