Hi Pierre,

On Tue, Mar 3, 2015 at 6:40 AM, Pierre Joye <pierre....@gmail.com> wrote:

> On Sun, Mar 1, 2015 at 3:29 AM, Yasuo Ohgaki <yohg...@ohgaki.net> wrote:
> > Hi all,
> >
> > First of all, I have no intention removing old function names.
> >
> > PHP function names are subject of critics for a long time.
> > http://www.phpsadness.com/sad/4
> > http://www.phpsadness.com/sad/15
> > http://www.phpsadness.com/sad/27
> >
> > How about rename all of these functions according to CODING_STANDARD for
> > PHP7
> > and have aliases for old names? Some names need complete rename, but
> most of
> > them are matter of adding "_".
> >
> > Function names like phpversion(), htmlentities(), image*() shouldn't be
> > kept. IMHO.
> > (I repeat. I have no intention removing old names)
> >
> > str*() would be most difficult. How about rename all of them to str_*()?
> > and keep
> > libc compatible alias names forever?
> >
> > Thoughts?
>
> I see no gain to do that. It also won't solve the arguments order mess.
>
> The last time we discuss this topic the idea was to go for the new
> pseudo object for most scalar, something Nikita worked on with a
> prototype, allowing something like $mystring->replace(...); But adding
> name aliases only to get names_defined_correctly sounds like a bad
> move to me.


Sadly, this proposal only renames functions and has aliases for old names.
We may try to fix argument order mess when we have "default namespace"!
I just don't have time to do all the job at once...

I posted [RFC][DISCUSSION] as new thread. Please look at the list of rename
candidates. I think you'll agree to rename most of them.

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

Reply via email to