Re: [PHP-DEV] [RFC] [DISCUSSION] Ensure correct magic methods' signatures when typed

2020-05-01 Thread Gabriel Caruso
On Fri, 1 May 2020 at 01:47, Dan Ackroyd wrote: > On Tue, 28 Apr 2020 at 17:32, Gabriel Caruso > wrote: > > > > If there are no further requests or comments, I'll open this RFC for > voting > > next Friday. > > Hi Gabriel, > > I think it would be better to hold off until the mixed RFC has been v

[PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Max D
Greetings, Internals! This is my first try to input the proposal, please don't be strict ) All the years with PHP I hate writing classes. The need to prefix EVERY property and method use looks horrible and writes horrible. So, the proposal: Lets introduce directive declare(simple_classes=1); Th

Re: [PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Ben Ramsey
> On May 1, 2020, at 09:44, Max D wrote: > > Greetings, Internals! > > This is my first try to input the proposal, please don't be strict ) > > All the years with PHP I hate writing classes. The need to prefix EVERY > property and method use looks horrible and writes horrible. So, the > proposa

Re: [PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Larry Garfield
On Fri, May 1, 2020, at 10:02 AM, Ben Ramsey wrote: > > On May 1, 2020, at 09:44, Max D wrote: > > > > Greetings, Internals! > > > > This is my first try to input the proposal, please don't be strict ) > > > > All the years with PHP I hate writing classes. The need to prefix EVERY > > property

Re: [PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Max D
Thank you for the replies! Take note, that this directive is optional, so it will be used by programmers that would like this coding style. Of course, it will make code reading more challenging. But, from the other side, code will look more clean and human like, making understanding the logic easi

Re: [PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Max D
Forgot to add. As for me, poor developers experience is that I am forced to write the same 6-symbols prefix with 1 or 2 Shift-keystrokes 20-30 times per one code page - without alternatives. With best regards, MaxD пт, 1 трав. 2020 о 18:02 Ben Ramsey пише: > > On May 1, 2020, at 09:44, Max D

Re: [PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Thomas Hruska
On 5/1/2020 7:44 AM, Max D wrote: Greetings, Internals! I'm not going to implement this, hoping someone will volunteer if the reaction is positive. Also I have some more proposals I will post if this one goes nice. With best regards, MaxD https://www.youtube.com/watch?v=6lonH_lAv8Q -- Thomas

Re: [PHP-DEV] Simplify classes syntax proposal

2020-05-01 Thread Arvids Godjuks
On Fri, 1 May 2020 at 16:45, Max D wrote: > Greetings, Internals! > > This is my first try to input the proposal, please don't be strict ) > > All the years with PHP I hate writing classes. The need to prefix EVERY > property and method use looks horrible and writes horrible. So, the > proposal:

[PHP-DEV] opcache.no_cache prototype: Opcode optimization without caching

2020-05-01 Thread tyson andre
Hi internals, Currently, it isn't possible to enable optimizations without enabling caching. They should be orthogonal features - it's already possible to cache without optimization passes (`opcache.optimization_level=0`) I have a prototype implementing this at https://github.com/php/php-src/pul