Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96658 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47076 invoked from network); 30 Oct 2016 19:08:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2016 19:08:50 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 212.232.25.164 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.25.164 mx208.easyname.com Received: from [212.232.25.164] ([212.232.25.164:45220] helo=mx208.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/35-25911-D3546185 for ; Sun, 30 Oct 2016 14:08:47 -0500 Received: from cable-81-173-132-21.netcologne.de ([81.173.132.21] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1c0vTG-0008Mi-4p; Sun, 30 Oct 2016 19:08:42 +0000 Reply-To: internals@lists.php.net References: <44244cfd-c8ad-e0a9-4e70-380a8a8c940c@syberisle.net> <01f2f3da-592b-fd23-709d-ad620422f56d@fleshgrinder.com> <402447f2-6007-95c4-6b1d-2bbb30dfdd1d@fleshgrinder.com> To: Rasmus Schultz , PHP internals Message-ID: <35e0c893-435e-d5da-58be-4f63796775b4@fleshgrinder.com> Date: Sun, 30 Oct 2016 20:08:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Allow Iterator to be used with current, next, reset, key functions From: php@fleshgrinder.com (Fleshgrinder) On 10/30/2016 4:08 PM, Rasmus Schultz wrote: > But either way, I think I'm changing my mind about this one. > > And if the these functions support only arrays, then also the names > should probably be array_first() and array_last() for consistency with > other array-only functions. > > Perhaps better to make people be explicit, rather than trying to hide > side-effects to achieve shorter syntax... > +1 All of these concerns might be hypothetical but I see so much abuse every day that I prefer to be super conservative rather than trusting people to do the right thing. -- Richard "Fleshgrinder" Fussenegger