Re: [RFC][DISCUSSION] Collection Inspection

From: Date: Thu, 25 Jan 2018 20:23:10 +0000
Subject: Re: [RFC][DISCUSSION] Collection Inspection
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-101674@lists.php.net to get a copy of this message
On Thu, Jan 25, 2018 at 2:16 PM, Rowan Collins <rowan.collins@gmail.com> wrote: > On 25/01/2018 18:56, Michael Morris wrote: > >> Ok, let's stay on topic please. >> This RFC discussion is about an operator or family of functions to verify >> that a given $var is a collection. Objects which enforce collection >> integrity is a tangential but whole other topic outside the scope of what >> I >> proposed in the first post. >> > > > Well, it's more convergent than tangential: if Derick's "generics-lite" > were implemented, the desire for a collectionof operator might be lower, > because people would "$foo instanceof Collection<Bar>" instead. > Yes, but given what has been said on the issue by the senior maintainers, the chances for Derrick's "generics lite" counter-proposal ever seeing the light of day are somewhere between 0, null, false and empty string.

« previous php.internals (#101674) next »