Re: [RFC] Path to Saner Increment/Decrement operators

From: Date: Fri, 20 Jan 2023 19:44:28 +0000
Subject: Re: [RFC] Path to Saner Increment/Decrement operators
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-119386@lists.php.net to get a copy of this message
On Tue, Jan 17, 2023 at 6:28 AM G. P. B. <george.banyard@gmail.com> wrote: > Hello Internals, > > I would like to start the discussion on the Path to Saner > Increment/Decrement operators RFC: > https://wiki.php.net/rfc/saner-inc-dec-operators > > The goal of this RFC is to reduce language complexity by making $v++ behave > like $v += 1 and $v-- behave like $v -= 1; > > I am expecting the contentious part of the proposal to be the deprecation > of the PERL string increment feature to achieve the aforementioned goal. > However, I believe the benefits of aligning the behaviour of the > increment/decrement operators with addition/subtraction are larger than > keeping support for the PERL increment, which in its current state has > various shortcomings. > > Best regards, > > George P. Banyard > I don't see a section in the RFC about JIT or anything related to OpCache, but I know from experience with the Operator Overloads RFC that there are several architecture specific assembly optimizations for ++ and --. Have these been considered, and how will they be impacted? Jordan

« previous php.internals (#119386) next »