Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84190 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97979 invoked from network); 2 Mar 2015 21:59:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 21:59:08 -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.47 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.47 mail-qg0-f47.google.com Received: from [209.85.192.47] ([209.85.192.47:42858] helo=mail-qg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/EE-14834-A2DD4F45 for ; Mon, 02 Mar 2015 16:59:07 -0500 Received: by mail-qg0-f47.google.com with SMTP id q107so6409864qgd.6 for ; Mon, 02 Mar 2015 13:59:04 -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=WrcZyzz5PMU/X51zzvfRLAjHO+v+f4FiwizOgJYnFNc=; b=OXhD7s5xO3PkavnonUGFI7duCOD8ZV5wA8EYaWMH/mzWmOhyPR0ALzRdu6ouf+bht3 5s7thAwSvj/rouLuKVj8mguZF2DKnw56/dGojnv5mrxkSfBxBVuduLpaDGC+hS/aDXRK CGEyt64+r0n8P0j2bhUHGUVWixt7Ki52TWKYMigEuaRkFiCk0Uk7dqx4O3bZJuFW9lVb FrFP5KvSiUtOVlQ/iyK6mnZfwnC1ozk9wtGJI3mqMJas9RebyY6WS0+khSMaqU3sEW6y ahaZ3mcPLtLkLIox8hxF6GN1IQan1ri8aCbjfa6IPTq/nRtkL2G8QltBbz0iWbpnTjLv 0ZtQ== X-Received: by 10.140.29.74 with SMTP id a68mr26124032qga.106.1425333544166; Mon, 02 Mar 2015 13:59:04 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Mon, 2 Mar 2015 13:58:23 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Mar 2015 06:58:23 +0900 X-Google-Sender-Auth: QPg_vEUgx0jp42GOoVB15-OZe0k Message-ID: To: Pierre Joye Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113a413e9648af05105553c1 Subject: Re: [PHP-DEV] Consistent function names From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113a413e9648af05105553c1 Content-Type: text/plain; charset=UTF-8 Hi Pierre, On Tue, Mar 3, 2015 at 6:40 AM, Pierre Joye wrote: > On Sun, Mar 1, 2015 at 3:29 AM, Yasuo Ohgaki 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. Sadly, this proposal only renames functions and has aliases for old names. We may try to fix argument order mess when we have "default namespace"! I just don't have time to do all the job at once... I posted [RFC][DISCUSSION] as new thread. Please look at the list of rename candidates. I think you'll agree to rename most of them. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113a413e9648af05105553c1--