Re: [RFC] ArrayIterator improvements

From: Date: Tue, 22 Nov 2016 20:43:45 +0000
Subject: Re: [RFC] ArrayIterator improvements
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-97129@lists.php.net to get a copy of this message
On Tue, Nov 22, 2016 at 6:47 PM, Wes <netmo.php@gmail.com> 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

« previous php.internals (#97129) next »