Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84333 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14331 invoked from network); 5 Mar 2015 10:32:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 10:32:52 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.47 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.47 mail-qa0-f47.google.com Received: from [209.85.216.47] ([209.85.216.47:58635] helo=mail-qa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/32-01843-2D038F45 for ; Thu, 05 Mar 2015 05:32:51 -0500 Received: by mail-qa0-f47.google.com with SMTP id v10so38282524qac.6 for ; Thu, 05 Mar 2015 02:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=XGgzaHoYZNwgMCy+NYypfEtsWKwT3CuHs8QAMpjulOw=; b=a+LsIwwwWyrcolhBNfnlENCLTH0w7fTMDF44wjg/wvsf22InMwyihpx106ySyP0UB8 tNEpA4hzi+bjixzcCpN/UdNRxvWP/6WOmMWZkwkuPxRUsvjElcJB7c1dILpgbgalKR9J minCGcm3gHz30yEbdrusEkaZtQNX52WMc2lbdiV6Mi/B6GRKYNY2s1IWWQyDHRR0jLc+ WTWzZ8I6EfO1F3l0+CQG333HZwK0rEoM9sYMQo5XkmCcZFbpL6CJ2BHeP9JVn+bR46W1 Fi3ci+e/5qBg0/0tIwBEbSf21h95m+OtgGxKVGi/M7BQpj3edPdk/jx57KQciwZOAva8 eYtg== X-Received: by 10.140.102.19 with SMTP id v19mr11212812qge.32.1425551567883; Thu, 05 Mar 2015 02:32:47 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Thu, 5 Mar 2015 02:32:07 -0800 (PST) In-Reply-To: <4ED7146272E04A47B986ED49E771E347D3111ACF33@Ikarus.ameusgmbh.intern> References: <4ED7146272E04A47B986ED49E771E347D3111ACF33@Ikarus.ameusgmbh.intern> Date: Thu, 5 Mar 2015 19:32:07 +0900 X-Google-Sender-Auth: JZ_i20CP0LuZ5yNb7P3llWKn85M Message-ID: To: Christian Stoller Cc: Rasmus Lerdorf , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c16400d016670510881609 Subject: Re: [PHP-DEV] Consistent function names From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c16400d016670510881609 Content-Type: text/plain; charset=UTF-8 Hi Christian, On Thu, Mar 5, 2015 at 7:15 PM, Christian Stoller wrote: > 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 > 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. > Your point may be true. AFAIK, developers are complaining about - procedural functions having current and old naming conventions - string and array functions has different parameter order for $needle and $subject POSIX compliant names may be added as alias for IEEE 1003.1 compliance. I'll indicate those functions are comply IEEE 1003.1 standard convention mostly. PHP is not C, so it cannot comply fully, but PHP can comply mostly. For developers know IEEE 1003.1 can use these functions assuming it works as IEEE 1003.1 function mostly. Most developers will not complain to have IEEE 1003.1 complied aliases, I suppose. While I think IEEE complied names are useful, others may not. I'll have vote option for this. I appreciate feedback! Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c16400d016670510881609--