Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83318 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40040 invoked from network); 20 Feb 2015 16:11:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 16:11:17 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.169 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.169 mail-ob0-f169.google.com Received: from [209.85.214.169] ([209.85.214.169:43907] helo=mail-ob0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/14-14173-4AC57E45 for ; Fri, 20 Feb 2015 11:11:16 -0500 Received: by mail-ob0-f169.google.com with SMTP id wp4so25091833obc.0 for ; Fri, 20 Feb 2015 08:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZEZ9yhRaIB2i1O8IPCLqDmegXguTotPGkqgTAhO7H98=; b=Z7il6S3PDddGpe12AkV35GSJOo4A03Q/WfL17cA5NFe8tFHRuSnIr7Zjem6dQLKF6f 3sg8XAQKzHM+1I+vQi0XFdQTzkCkDB2exCR8F/QHGAs2oiZ/1xqmlpP9/r9dBgRgt4b7 9OHanHdoNATnemPdssCY847Qjg1a6JeDKNM8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ZEZ9yhRaIB2i1O8IPCLqDmegXguTotPGkqgTAhO7H98=; b=Mrfi13cwElVRIqZ5pWthRjtte0+cJIugA8nLd2wfWeQzq3O02f7f+aLO27Xqy/KRaW GMgxLScZajwColu5tUjv9fY1Iy/D9FZaPcMO5iiKmaE39WH6zXLDMsk1Cr/BQK0M8A2K XNhBf3M101EBLQ8hhbBN1HZn5N6ZCK4XqpazeTO9NtaRnXewGx03mJW1lkCGysM18ZZE N+UXx1liG9LAvKJiu+m0guJgSbnrvIWl77zsPNUnrUZMs86sxgjfv2A3sWAzEo2EboGB XVv7nohbj2Bf0jiJ6VsduMuZLMvjO4tA3HiUiS3RWQCPYgckotcIUcHGDIvkJsZwDYhY w75A== X-Gm-Message-State: ALoCoQk2PTyEw2cB/KTscr7UTL85/nYWXKbgVYxwfO0Qw6S3E4fpHMsmLqicCdnrhCyuIa8x4wBr MIME-Version: 1.0 X-Received: by 10.182.126.197 with SMTP id na5mr7143209obb.2.1424448673561; Fri, 20 Feb 2015 08:11:13 -0800 (PST) Received: by 10.202.214.205 with HTTP; Fri, 20 Feb 2015 08:11:13 -0800 (PST) In-Reply-To: References: <04db01d04cc1$d9925770$8cb70650$@php.net> Date: Fri, 20 Feb 2015 18:11:13 +0200 Message-ID: To: Levi Morrison Cc: francois@php.net, internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 From: narf@devilix.net (Andrey Andreev) 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. Cheers, Andrey.