RE: [PHP-DEV] Consistent function names
| From: | Christian Stoller | Date: | Thu, 05 Mar 2015 10:15:26 +0000 |
| Subject: | RE: [PHP-DEV] Consistent function names | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84331@lists.php.net to get a copy of this message | ||
From: yohgaki@gmail.com [mailto:yohgaki@gmail.com] On Behalf Of Yasuo Ohgaki, Sent: Thursday, March
05, 2015 9:45 AM
> On Thu, Mar 5, 2015 at 4:34 PM, Christian Stoller <stoller@leonex.de> wrote:
> From: yohgaki@gmail.com [mailto:yohgaki@gmail.com] On Behalf Of Yasuo Ohgaki, Sent: Thursday,
> March 05, 2015 > 7:21 AM
>
>> 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.
>>
>
> Changing ctype_alpha to isalpha would be inconsistent with is_numeric.
>
> I'm not going to change ctype_alpha to isalpha, but add IEEE complied name
> alias. So the manual page would have ctype_alpha as the main function,
> isalpha as IEEE complied alias.
Hi Yasuo,
I am not sure if you understood me correctly. If you add the alias
isalpha, there will
be people who will complain about new inconsistences, because there will be isalpha and
is_numeric. Function names starting with "is", having an underscore and some
having no underscore.
I do not think that this mix will lead to less complains by developers.
Christian