Hi Rasmus,

On Thu, Mar 5, 2015 at 2:14 PM, Rasmus Lerdorf <ras...@lerdorf.com> wrote:

> Every function name defined by IEEE Std 1003.1 along with the arguments
> and argument order would be on that list. When we have procedural
> functions that are either thin wrappers around or otherwise behave
> identically to an IEEE 1003.1 defined function, then the name and
> arguments currently match that specification quite well. Any deviation
> should have a really really good reason.
>
> You can find the full list here:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/idx/is.html
>

I like the idea to be IEEE 1003.1 compliant. I'm used to these name too.
If anyone don't mind, I would like to extend scope of the RFC to have
both PHP and IEEE names and document them.

For example, ctype extension has "ctype_" prefix. It replaces "is" to
"ctype_".
we may have "isalpha" alias as IEEE compliant name. There are many
IEEE confirmed names already. Only small adjustments are needed.

Document may look like

http://php.net/manual/en/function.ctype-alnum.php
----------------------------
 ctype_alnum
 Aliases
  - isalnum (IEEE 1003.1)   <- There is no "isalnum" defined in PHP
currently.

(PHP 4 >= 4.0.4, PHP 5)
ctype_alnum — Check for alphanumeric character(s)

Description ¶

bool ctype_alnum ( string $text )
Checks if all of the characters in the provided string, text, are
alphanumeric.

Parameters ¶

text
The tested string.

Return Values ¶

Returns TRUE if every character in text is either a letter or a digit,
FALSE otherwise.
----------------------------

The same could be done for new names.
Manual pages for localtime()/mktime()/etc would look a lot nicer.
I hope there will be more favored developers with the RFC. Since I'm going
to
update manual to have alias search feature, developers used to POSIX can
find
PHP function name easily. If they would like to use POSIX name, they can use
it also. Nobody will try to remove POSIX names in the future, I suppose.

In short, I would like to propose to have both PHP and IEEE names as
officially
valid names. Do you like this proposal?

Regards,

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

Reply via email to