Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83288 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60593 invoked from network); 20 Feb 2015 11:21:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 11:21:50 -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.170 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:48279] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/C0-54878-DC817E45 for ; Fri, 20 Feb 2015 06:21:49 -0500 Received: by mail-ob0-f170.google.com with SMTP id va2so23529609obc.1 for ; Fri, 20 Feb 2015 03:21:46 -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:content-transfer-encoding; bh=S3Lz3Xwh+6mfx2AflwVPMYqenTBsetuBwhFM2c9n4Wc=; b=g9mxw/VjgOphJk1DOK0M97G/FbQfIwKj34kmxvpT5+kR9npkYCV+miG1js6i2BvmOU cGYVmcisa4VWbjvGG+JtLHLG8Oe9d2X+ftOwZLubm2SUIXKLapdBWsrNIaiLDI3NLZ1N wKBAPbIebZRqfud30xcmqvcH23tQPzTu5qHAA= 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 :content-transfer-encoding; bh=S3Lz3Xwh+6mfx2AflwVPMYqenTBsetuBwhFM2c9n4Wc=; b=hEyoorbjVEHKD43mNdoTZ2KPCmGMvmufE4xdt7gTTZB3F0Oq+JjZ9ITYmioJ08yPhP /nHIrVCV8sghSHeIqxGHy2IoDaH7eNluMYfLM0zBXoyk6Kv2StTrcS+/Iy6p+U75iQmH hKkb/dFT3Wbd9QGejmuUeQWXVruyCaf5skQVXcssJ6Pxi6/hxUjVp2IF8Ylt90AcGTIj DWhYnyGygXoo3hbry6YHf2KnP8FmMRhlTbPOEhDxjjA9hA+63m5j06+OFewA2/MQuT8H tq/fxcctMlGoYLEBzRt0CKYkTxmbKdyEvwSUPdNLHdS202qt3TQFmSqvewYriOJlKNyq WEmw== X-Gm-Message-State: ALoCoQmFWDh5E0OkcztjwuD2DJCBL/jJfSMbe1tSnDRxykpYkGwPmzYTXEkrkGQapD69voUuFwez MIME-Version: 1.0 X-Received: by 10.202.202.14 with SMTP id a14mr5812656oig.5.1424431305917; Fri, 20 Feb 2015 03:21:45 -0800 (PST) Received: by 10.202.214.205 with HTTP; Fri, 20 Feb 2015 03:21:45 -0800 (PST) In-Reply-To: <04db01d04cc1$d9925770$8cb70650$@php.net> References: <04db01d04cc1$d9925770$8cb70650$@php.net> Date: Fri, 20 Feb 2015 13:21:45 +0200 Message-ID: To: francois@php.net Cc: Levi Morrison , internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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:01 AM, Fran=C3=A7ois Laupretre = wrote: > Hi Levi, > > Just my opinion : > > Add 'resource', 'object', 'scalar', 'mixed', 'numeric' > > Remove 'double' (avoid this alias if we decide to encourage 'float' every= where) > > Not sure we'll use Boolean and integer but reserve also. > > Hope 'null', 'true', and 'false' can technically be used as type hints. I= f not, bad news, especially for null. Love 'int|false' as return type ! > I'd rather not reserve 'resource'. Such a hint may be useful in the short term, but there already are plans to turn the current resources into objects, and with the rise of REST lately it is also an obvious base class/interface/trait name. Agree on 'double' though ... if we want to discourage its usage, we might even think of deprecating it. Cheers, Andrey.