Re: Fwd: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures
| From: | Rowan Tommins | Date: | Wed, 14 Jun 2023 22:26:36 +0000 |
| Subject: | Re: Fwd: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120580@lists.php.net to get a copy of this message | ||
On 14/06/2023 22:51, Máté Kocsis wrote:
The whole discussion about also deprecating the other one started only because of improving naming: it is also a nice thing to pursue but fails the cost-benefit analysis.In my mind, making two new names, both unambiguous, gives a greater benefit (a clearer final state) without that much extra cost (more people will have to change their code, but fewer will be confused about whether they need to or not).
All in all, I think neither not doing anything, nor deprecating the whole function is a good choice.The more I think about it, the more I'm leaning towards not doing anything being the best choice. The benefit seems small, and the cost high. Regards, -- Rowan Tommins [IMSoP]