Re: Consistent function names
| From: | Yasuo Ohgaki | Date: | Sun, 01 Mar 2015 20:19:24 +0000 |
| Subject: | Re: Consistent function names | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84115@lists.php.net to get a copy of this message | ||
Hi Markus and Fischer,
On Sun, Mar 1, 2015 at 11:23 PM, Markus Fischer <markus@fischer.name> wrote:
> 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.
I agree use of namespace is better solution. It's rather severe BC, though.
How about rename functions except "string" and "array" related functions?
BTW, I cannot change document system, but I'm going to update all doc
contents if this passes.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net