Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97154 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 407 invoked from network); 24 Nov 2016 08:58:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2016 08:58:14 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.161.169 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.161.169 mail-yw0-f169.google.com Received: from [209.85.161.169] ([209.85.161.169:33368] helo=mail-yw0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/41-21589-3ABA6385 for ; Thu, 24 Nov 2016 03:58:14 -0500 Received: by mail-yw0-f169.google.com with SMTP id r204so33940246ywb.0 for ; Thu, 24 Nov 2016 00:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=W4NJjjuEzSkprPr2PxonzhjPYFsgHpC9olyRO1OtRUY=; b=wJGaSqIXwz17eavT5NKLo+B4aJG60wQHpcA0/BY51NoNOB9+uWztiROYEE4wPF4LOR kz4vnC5pJRchTTj/tg2YV4YBBUKe4aMv2oG4sBm71BEwPZ9VCE68fmYjRIOvvTBfm2Tz TGKAnVv5V+85DTfePKzzTHNXf776hCjnmPwlCbNpxmz9NpHegrhCwJ21AAAwBQgbQJun MQbMd7cIsnNkg6WU8q3adjw1BB+7h5QHwrZsRpvCu1APnrW02PTJpicSSXgfuRg2sDwI iSDvuIr5TaOX3aSsJcq76UB2UfZEjm3l54CczK8i/SscftT58vWjzTiqaVTsFakawEa6 Y1+g== 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:from:date :message-id:subject:to:cc; bh=W4NJjjuEzSkprPr2PxonzhjPYFsgHpC9olyRO1OtRUY=; b=WxYlID7A/rZvqwrrNwNw9AzQeHDXcgBP0GMSerV+A8OdYJwGrFg0PDOwh5rdRiGVvu vUZGmsPwFFcx+GhXi8e+bhLZFrA4DIzhCjB84tSBPq+DGQ4PGLB7ezuVPlKQCVws/2s5 xmddgrhBPdib2w4sucLpFidyTeW/G8ZFfcCP2P+6bKS9aH+dtVgjXKxhCulivD7jfHlE Oew/hLkm5IZvNc88HGIZuWZmFIOl7lckmHswu+inj3PDajz0on3G2A5J2N/VAEbf4gzx UqmK9lpiZ7kISSRU2kvvVwYNsC8/YQsisy8pGd2iNO8KhWGLPNQTj5jJ9u/KhRmlXMX1 luHQ== X-Gm-Message-State: AKaTC02v+qrYEMn6PL8tIlStSTB1bZFSLMMWQtZrdG9ej41p9J72F3PyPmkMwrYrzw7vjerGvV9z+u4GeRLoUA== X-Received: by 10.129.169.138 with SMTP id g132mr1642739ywh.196.1479977889398; Thu, 24 Nov 2016 00:58:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.88.193 with HTTP; Thu, 24 Nov 2016 00:58:08 -0800 (PST) X-Originating-IP: [77.101.210.160] In-Reply-To: References: Date: Thu, 24 Nov 2016 08:58:08 +0000 Message-ID: To: Levi Morrison Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Object type hint, now with added variance From: danack@basereality.com (Dan Ackroyd) Hi Levi, On 23 November 2016 at 01:25, Levi Morrison wrote: > > it assumes that all types that are not statically known to the engine are > objects. This is a restrictive future compatibility concern. Any RFC and/or patch can only deal with PHP as it currently is. > Giving up these options for the sake of object > variance is definitely not prudent in my opinion. We would not necessarily be giving them up. We are just adding a small amount of complexity that would need to be handled by future RFCs. Which is true of all RFCs. > For instance enumerations (or enums) are one possible type I can see us > adding that may not be objects. I very much look forward to the RFC for enums, and have for some time. When are you thinking of submitting it for discussion and voting? cheers Dan Ack