Re: Consistent function names
| From: | Markus Fischer | Date: | Sun, 01 Mar 2015 14:23:37 +0000 |
| Subject: | Re: Consistent function names | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84106@lists.php.net to get a copy of this message | ||
On 01.03.15 13:53, Rowan Collins wrote:
> On 1 March 2015 11:29:49 GMT, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
>
>> How about rename all of these functions according to CODING_STANDARD
>> for
>> PHP7
>> and have aliases for old names?
>
> If this list had an FAQ (which I think it should), this would be on it.
>
> The answer is no, it's just not worth it. Having a function called str_pos which is an
> alias of strpos, but only on some versions, is more confusing, not less.
My sentiment too. Factor in that someone already using the proposed
himself, things can only go south from here.
If PHP wants to clean up, then do it right: use a namespace for it.
- Markus