Re: [PHP-DEV] [VOTE] Make compact function reports undefined passed variables

2018-06-11 Thread Rowan Collins
On 11 June 2018 at 07:14, Hoffman, Zachary Robert wrote: > > However, even if those 4 values end up being stored in a structure, I > don't want to manipulate that structure within that class method itself, I > want to perform computations with local variables. If I have to separately > store thos

[PHP-DEV] Add functions array_key_first() and array_key_last()

2018-06-11 Thread Enno Woortmann
Hello Internals, I'd like to ask for feedback for my idea. Some years ago a pull request came up to add array_key_first(), array_key_last(), and array_key_index() functions (#347 ). In the meantime a RFC was published to integrate the functions (https://wi

Re: [PHP-DEV] Better types without runtime checking

2018-06-11 Thread Björn Larsson
Den 2018-06-08 kl. 17:31, skrev Rowan Collins: On 8 June 2018 at 15:36, Pedro Magalhães wrote: On Fri, Jun 8, 2018 at 1:28 PM Rowan Collins wrote: I presume you mean 7.4, since 7.3 is in alpha already, and this is quite a major change? AFAIK, alpha1 was tagged but it still didn't branch

[PHP-DEV] Re: Add functions array_key_first() and array_key_last()

2018-06-11 Thread Christoph M. Becker
Hi Enno! On 11.06.2018 at 14:15, Enno Woortmann wrote: > For the next steps I'd like to create a new RFC as the functional scope > differs to the existing RFC. Therefor I request a PHP.net wiki account > (wiki username: wol-soft) to create a new RFC. You should have RFC karma now. -- Christoph

Re: [PHP-DEV] Better types without runtime checking

2018-06-11 Thread Rasmus Schultz
On Tue, Jun 5, 2018 at 9:22 AM, Rudolph Gottesheim wrote: > ... > Has there ever been a discussion about adding some of those features > syntactically, but ignoring them during runtime? That's what Hack does, and one of the main reasons we dropped Hack in favor of PHP. PHP is a reflective langua

[PHP-DEV] Re: Add functions array_key_first() and array_key_last()

2018-06-11 Thread Enno Woortmann
Hi Christoph, On 11.06.2018 at 15:21, Christoph M. Becker wrote: You should have RFC karma now. Thanks for the RFC karma, everything worked fine. I've created a new RFC for this topic located at https://wiki.php.net/rfc/array_key_first_last Thanks, Enno --- Diese E-Mail wurde von Avast A

Re: [PHP-DEV] Better types without runtime checking

2018-06-11 Thread Rowan Collins
Hi Rasmus, While I agree with your general point regarding consistency, I just want to take issue with sentence: On 11 June 2018 at 15:12, Rasmus Schultz wrote: > Hack made some very regrettable decisions in this area, and ultimately > those features were useful at design-time only, for IDE-sup