Re: [PHP-DEV] Operator overloading for userspace objects

2020-02-07 Thread Andrea Faulds
Hi Johannes, Thank you for your points! I think you point out some overlooked issues. Johannes Schlüter wrote: Which one is being called? - Vector's or Matrix's. How will your vector know about my Matrix? The way C++ solves this is by allowing non-member functions as operators. #includ

Re: [PHP-DEV] Re: Changing the generated name for anon classes

2020-02-07 Thread Nicolas Grekas
Le ven. 7 févr. 2020 à 14:36, Nikita Popov a écrit : > On Thu, Feb 6, 2020 at 9:08 PM Andrea Faulds wrote: > >> Hi, >> >> Nikita Popov wrote: >> > Hi internals, >> > >> > Based on a suggestion by Nicolas Grekas, >> > https://github.com/php/php-src/pull/5153 changes the generated name for >> > an

Re: [PHP-DEV] Re: Changing the generated name for anon classes

2020-02-07 Thread Nikita Popov
On Thu, Feb 6, 2020 at 9:08 PM Andrea Faulds wrote: > Hi, > > Nikita Popov wrote: > > Hi internals, > > > > Based on a suggestion by Nicolas Grekas, > > https://github.com/php/php-src/pull/5153 changes the generated name for > > anonymous classes to include the name of the parent class or first >

[PHP-DEV] [RFC] Validation for abstract trait methods

2020-02-07 Thread Nikita Popov
Hi internals, I've sent a mail about this before, but as this turned into a bit of a larger change (also allowing "abstract private" methods in traits) and there's some backwards compatibility impact, I've created a proper RFC for this: https://wiki.php.net/rfc/abstract_trait_method_validation R