Re: [RFC][Under Discussion] Add functions array_key_first() and array_key_last()

From: Date: Thu, 14 Jun 2018 22:27:19 +0000
Subject: Re: [RFC][Under Discussion] Add functions array_key_first() and array_key_last()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-102269@lists.php.net to get a copy of this message
Hi, On 13.06.2018 at 23:10, Christoph M. Becker wrote:
I suggest to address Côme's suggestion[1] on this mailing list and especially in the RFC (the template[2] offers “Open Issues” and “Rejected Features” sections). [1] <https://externals.io/message/102225#102232>
I've added the "Open Issues" section to the RFC and added the idea of Côme and Gabriel to add the corresponding functions for handling the values of the outer elements of an array to provide a complete set of functions. Currently I see three possibilities to handle the idea. Either extend the scope of the RFC to cover also the handling of the values, which could be implemented rather fast and by reusing a lot of code as the current implementation already gathers the bucket for the first/last element of an array, or move this idea to a future scope which should be covered by a separate RFC. The third alternative would be to skip the implementation of the corresponding functions. In my opinion it's a good idea to complete the function set by also providing functions for the handling of array values. Both opportunities which would lead to the completed set are practicable in my view. Any opinions concerning this issue? Good night (or day, wherever you are ;) ), Enno

« previous php.internals (#102269) next »