Re: [PROPOSAL] Alphanumeric decrement

From: Date: Tue, 17 Dec 2013 00:11:36 +0000
Subject: Re: [PROPOSAL] Alphanumeric decrement
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-70686@lists.php.net to get a copy of this message
On 16/12/2013 23:35, Andrea Faulds wrote:
On 16/12/13 23:33, Tjerk Meesters wrote:
I would love to completely eradicate it, but I also realize that there's existing code using it, such as:
Before writing the -- support patch, I wrote a patch to remove ++ support. There were a few tests that relied on the feature which required rewriting, so I'm quite worried about what'd happen if we removed it. Maybe in 6.0?
Genuine question: what is the actual case for removing the current operator in favour of a function? Is it to make a clearer separation between string and numeric operations? Or that it feels like a function should have been created rather than overloading the operator in the first place? Regardless of deprecation period, this is one of those things that is quite hard to track down - you can't just grep your codebase for instances like you can with a function being removed. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#70686) next »