Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101672 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83415 invoked from network); 25 Jan 2018 20:16:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2018 20:16:51 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:39852] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/93-61119-13B3A6A5 for ; Thu, 25 Jan 2018 15:16:50 -0500 Received: by mail-wm0-f41.google.com with SMTP id b21so17182471wme.4 for ; Thu, 25 Jan 2018 12:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=S2cCneOHyojar/bmTZwteTNPqp7v3fiV+6oDe8z4S6E=; b=Hdh2mj4b8+6nzpb7n03EfZeFdBePssBGNXeVu22JO8BKknBiR1Fqj7FY7MMUGBcAoI NHOlBCf70Uyvi1W2TwdvW3/v40aAiDklYdx8m9MN2gNh0KKs/rTJgnJbQczzAlECEP0B IQbgjzxVE26yoV7kHpLzh57Frt/q/oH9P+gW0sfj1fqkfj2c6mo+AfDoCcNGkQnkmmTZ h2dMXVKmoiRLccjesLTA4GnQ3c3Ms91e2XEW8HFDzs+Aw7jSacft03zDIIjabjlAJMXo OGXf0XZ8SsnodSKID4FTYwZKVp/PNAPynxaAqVyneEyfl6f/exrwzEPLLDMrnD8nxRXd U4jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=S2cCneOHyojar/bmTZwteTNPqp7v3fiV+6oDe8z4S6E=; b=e37TncVPicJIc0X6J/bhtMNJvHEX+6krRDE9tnInDA53JMCG+Hi1XLqYK7Rb15qQwc yN++UQCQKshluD2gBz3m4B5RlNbm8wVy1d3qTGlYv/tAUXilZEbERQsQWezngynVR5Sj TGMBX5Mt0CkQFBfj6ru3ufjE5q9yx1Ju4HK6UNfnUQDN34d0dBvUIjZDq5fhbXaGOqvk HneEpPs4LQ5jf3O15zeXAzx3IW7vPAPoGMyVqAHtPdWh6WVFiQ3KozErbUXWErPCQzAb LrZyLFtW5E7pt/RmdKt0qjoVMIniMjIDMaH7iGCE9ukK5h/zM5i+yxl6WQISOoELRICw LVVQ== X-Gm-Message-State: AKwxyteuRMatZMw3+nlA5Imkv75I1aKx4Iuvne8X8YhiPCScv76PvCJy RrGSr1VbYDxe2DW5QKkR5lcfqQ== X-Google-Smtp-Source: AH8x225Qe2F8loU5/JBsXcvniUEBEZOEo7/RSU8lgUi/hphicIsLllbimJG62rtz2KZYuzC7oy8VpQ== X-Received: by 10.28.140.1 with SMTP id o1mr7900547wmd.141.1516911406584; Thu, 25 Jan 2018 12:16:46 -0800 (PST) Received: from [192.168.1.253] (host86-173-114-42.range86-173.btcentralplus.com. [86.173.114.42]) by smtp.googlemail.com with ESMTPSA id r5sm2485788wmg.30.2018.01.25.12.16.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 12:16:45 -0800 (PST) To: internals@lists.php.net References: Message-ID: Date: Thu, 25 Jan 2018 20:16:40 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV][RFC][DISCUSSION] Collection Inspection From: rowan.collins@gmail.com (Rowan Collins) 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" instead. That said, the two don't cover all the same use cases, but it's useful to ask the hypothetical question "if we already had generics, would we still be keen to add the collectionof operator?" Regards, -- Rowan Collins [IMSoP]