hi,

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.

Cheers,
Pierre

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to