Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65738 invoked from network); 5 Mar 2015 04:25:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 04:25:54 -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.51 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:46224] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/10-56703-1DAD7F45 for ; Wed, 04 Mar 2015 23:25:53 -0500 Received: by mail-qa0-f51.google.com with SMTP id k15so11212775qaq.10 for ; Wed, 04 Mar 2015 20:25:50 -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=TOt+1VNrXjDaqYssgVRYtE68uetgdLVwOAhMTenFs58=; b=IM8k9PmbWKJord6UFOadpp82MK5nwS7z02ZsB+iq8ta+5HrNCjZxTBMd6At1D5Mbvr 4YZbJazIzgaPwb6dBh4PymYJelok7BEXJoMk8UKpnLf3lVV8lI6dXPtEY1z0KsHHM/ir Td66G0Pv8qeX2/casxJM3pNkEg0JK6sY8/KB5Pfj266iQqaMsmiIx2EyBUNOVxDrD5LV ULw3HnutBNmjAqYh8tdkpN3l9f7PAjAHnStMNErKKuk6nNbCc58xdnQOKXXCquboWIRL R1NFImT7QHy4IvE8PlJwt0Bfg+Kh1orWgnnOH9yEoDarNYloPCOrXQZrXSdtmIYq1U3x B6eg== X-Received: by 10.55.53.79 with SMTP id c76mr14182710qka.45.1425529550426; Wed, 04 Mar 2015 20:25:50 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Wed, 4 Mar 2015 20:25:10 -0800 (PST) In-Reply-To: <54F73702.9050806@lerdorf.com> References: <54F4E93C.80206@gmail.com> <54F4EBEC.2090702@garfieldtech.com> <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> Date: Thu, 5 Mar 2015 13:25:10 +0900 X-Google-Sender-Auth: whWanCRE_oJ3wcyd-_paxH1AQeg Message-ID: To: Rasmus Lerdorf Cc: "guilhermeblanco@gmail.com" , Trevor Suarez , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1149052e7860a6051082f609 Subject: Re: [PHP-DEV] Consistent function names From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1149052e7860a6051082f609 Content-Type: text/plain; charset=UTF-8 Hi Rasmus, On Thu, Mar 5, 2015 at 1:46 AM, Rasmus Lerdorf wrote: > On 03/04/2015 08:26 AM, guilhermeblanco@gmail.com wrote: > > @Rasmus: > > > > I don't see what's the problem of aliasing functions for the next 1-2 > > majors, deprecate the inconsistent one in the following and remove later. > > As far as I am concerned str_len() would be the inconsistent one. Like I > explained previously, these function names for the most part, aren't > ones I made up. They come from the underlying libraries and whether you > personally value that or not, there is an actual reason for their names. > Many of them are iconic entities on their own, at least to people with > experience outside of PHP. Terms like "recvfrom", "getenv" and yes, > "strlen" are well-established names that should not be split up into > "recv_from", "get_env" and "str_len" due to some sort of arbitrary > consistency/purity idea any more than I should have my name changed to > Ras_mus. > > As many people have already suggested in this thread, if we are going to > do something here it has to bring actual value and can't just be a bunch > of aliases littering the global namespace further. > > I have mixed feeling for well established names indeed. These function names are debatable. Latest RFC leaves fopen()/fread()/etc as it is now, for example. https://wiki.php.net/rfc/consistent_function_names#file_related_functions Personally, I don't mind to keep current names for strlen()/etc. You don't mind at all to have php_version()/etc probably. It's possible to have separate vote for names that are debatable or even keep current names without vote. If you could provide list of debatable names, I'll have separate votes for them or keep current names without vote. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1149052e7860a6051082f609--