Re: [RFC][DISCUSSION] Object type hint, now with added variance

From: Date: Thu, 24 Nov 2016 08:58:08 +0000
Subject: Re: [RFC][DISCUSSION] Object type hint, now with added variance
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-97154@lists.php.net to get a copy of this message
Hi Levi, On 23 November 2016 at 01:25, Levi Morrison <levim@php.net> 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

« previous php.internals (#97154) next »