Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84318 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79400 invoked from network); 5 Mar 2015 06:22:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 06:22:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.45 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.45 mail-qg0-f45.google.com Received: from [209.85.192.45] ([209.85.192.45:44381] helo=mail-qg0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/62-56703-D06F7F45 for ; Thu, 05 Mar 2015 01:22:05 -0500 Received: by qgfl89 with SMTP id l89so3714495qgf.11 for ; Wed, 04 Mar 2015 22:22:02 -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=I3rFBwYs8VttMJYp474kpWUzq9mygLgUGSAnOiKxnas=; b=fad/o2zC4F2VOrc8Pq7vrbeuk4HWhjNMG+L/1HYyJ9PC7bPZmruK+0pp7VrLWaae8g v0lqGqB//xZI/hcNb6D3ua81dH3ss/9S5lmtbhB2o5XxtOZ2YXOr04FIWHwx7TEycyYp e+ggF6pErLwZNPCw4ECZrJzbeUB9FiOTXPnSZ5vHXE6i3c45R+qH9Vi0w4paNmP+Ur+n KdrrhAuwurXm4d9f24OZCpVtOMACbpf6IMNhGq7Tas7SoDtTJqSNyZkerCtDpv4z/Eup YkGCthAmvYEGfleFNyroemi+F+qxt0tMOHHoISvpPGJxlRsD/5ixq7ajapVx7LKkjT4d P4ZQ== X-Received: by 10.55.41.106 with SMTP id p103mr14608097qkh.102.1425536522359; Wed, 04 Mar 2015 22:22:02 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Wed, 4 Mar 2015 22:21:22 -0800 (PST) In-Reply-To: <54F7E61B.4040301@lerdorf.com> References: <54F4F3FC.6060501@fischer.name> <54F4FDFB.8010701@lsces.co.uk> <54F5895D.3090002@gmail.com> <554F0C3F-770F-4694-A5AB-FDC54FCCBF00@gmail.com> <54F72360.6000702@lerdorf.com> <54F73702.9050806@lerdorf.com> <54F7E61B.4040301@lerdorf.com> Date: Thu, 5 Mar 2015 15:21:22 +0900 X-Google-Sender-Auth: RBSJv236cEyLqPNGCosVgc4GKxw Message-ID: To: Rasmus Lerdorf Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11406c9a0799c005108496ee Subject: Re: [PHP-DEV] Consistent function names From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11406c9a0799c005108496ee Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Rasmus, On Thu, Mar 5, 2015 at 2:14 PM, Rasmus Lerdorf 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 >=3D 4.0.4, PHP 5) ctype_alnum =E2=80=94 Check for alphanumeric character(s) Description =C2=B6 bool ctype_alnum ( string $text ) Checks if all of the characters in the provided string, text, are alphanumeric. Parameters =C2=B6 text The tested string. Return Values =C2=B6 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 us= e 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 yohgaki@ohgaki.net --001a11406c9a0799c005108496ee--