Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75857 invoked from network); 22 Nov 2016 20:43:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Nov 2016 20:43:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wm0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:36226] helo=mail-wm0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/7B-06373-40EA4385 for ; Tue, 22 Nov 2016 15:43:49 -0500 Received: by mail-wm0-f54.google.com with SMTP id g23so45725480wme.1 for ; Tue, 22 Nov 2016 12:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ouPo29gjMTRSJLyALtzI6o2cDiThZhOxM0IaW9JEZx8=; b=p8Fps1FiomuE8v/PHVsmNAnzPf7jlnn5dRJSlT5GdFby+iZwZ5pB2+Wx8+V9b0s3wW V5zNuK+zzYouV4cSnghZDtMjqyRWePYFjqiXoK5UWnn/o4ACJO5CPaicAZvY/uwFykTh XIDw5y0F0irxlWTvMLo+3ORB6wlhnS9p7NKPyhKcOkRK2ax6Aio70/KGWUx3/IJ2eSME sSnqWrn+MFq/3UygQXoqKACcz04XL6Y4Aoc0V0wU4WCuZ768bg/xC/E2L5mrP9pOhJkb koelwI5YVJEpxjX5Bw8MkxvVna/s2jT2oXdTK4/fkjGN6fdXfag1JUKIUotOfFM7HZcm kepA== 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=ouPo29gjMTRSJLyALtzI6o2cDiThZhOxM0IaW9JEZx8=; b=aR4yjHQnI0bs/vQUUWez9DzCey0ggnWOH7C5c35CTe6CRSo+ZycK6XoMC/xKYnEXy0 GiKbC4qF4tNwV/lry4nvBsAFF7OXb+574lEwstYX4LNaypJQI0QysY6uNqJUxZKFyXFj mUMrKWkRLxJl8Rncxv/q1p1gFc33Lvz5BLKIwvspBfL8FLdsdtsTARD6EzsxRKPKJX4Z gJa9Psx3NJalVhrfiBVq2G/98OeDBmuhoeorbjsqi9ugqsBNm1faC3/XG5TLiPJ0paG6 6Tj2qeP8Ex9MtO7LVZriN+v2qMY1iNajuLytnCG0/YfA9mFgwg5cL6PoniSObSSbU5lY 8LaA== X-Gm-Message-State: AKaTC027Xfc03na1TmDOnCW9OuOKEKv+ytSfMmQiG/usVMoXzLoJWzQMqexuPHjalDURIX3g3/6WAUF2buDmGw== X-Received: by 10.28.103.134 with SMTP id b128mr115578wmc.54.1479847426050; Tue, 22 Nov 2016 12:43:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.170.79 with HTTP; Tue, 22 Nov 2016 12:43:45 -0800 (PST) In-Reply-To: References: Date: Tue, 22 Nov 2016 21:43:45 +0100 Message-ID: To: Wes Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a114b2fae26d10f0541e9d4a8 Subject: Re: [PHP-DEV] [RFC] ArrayIterator improvements From: nikita.ppv@gmail.com (Nikita Popov) --001a114b2fae26d10f0541e9d4a8 Content-Type: text/plain; charset=UTF-8 On Tue, Nov 22, 2016 at 6:47 PM, Wes wrote: > Greetings again PHPeople, > > I wanted to avoid the discussion for the small improvements I was proposing > thinking it would be acceptable to do so ( > http://news.php.net/php.internals/97118) but apparently I was wrong (sorry > for that), so here's the discussion thread! > > https://wiki.php.net/rfc/arrayiterator-improvements > > Again this is my first RFC, and I hope I'm doing nothing wrong this time :P > > Thanks again, > Wes > > (and special thanks to Room11 for their feedback about the RFC process) > What's the reason for making seekKey() return a boolean? The existing seek() method throws an exception if the seek offset does not exist. It would make sense to me for seekKey() to throw an exception if the key does not exist, to keep things consistent. Nikita --001a114b2fae26d10f0541e9d4a8--