Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84187 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92984 invoked from network); 2 Mar 2015 21:40:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 21:40:17 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:41224] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/ED-14834-FB8D4F45 for ; Mon, 02 Mar 2015 16:40:16 -0500 Received: by mail-qa0-f49.google.com with SMTP id w8so25034499qac.8 for ; Mon, 02 Mar 2015 13:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7fczgsJ+3+/XO3+Uj83IfQBr8PoIIfnPTqfNdCbq5jo=; b=sof977IuvZnT4yjEfOXwdnOhXK8iBmEIxrfRkym2PPH0ZnPmtiaHHsFRPpsubi/aH6 l8cFlF10MO80UE30mJrp0iy6jwuc++faVvUoAqKfP0JUeDtfORRK8Jr3F9rehwYXdsH2 r3CkezQgYFY47odEojiGBAx658jx9xI95HKwPT5V0UHtJEklGywEZI9MdDi693JPvI1z w7ht8xpOHaOXpMFUJ3/qHXEdGsRCxN6bVXaLE4BgG4oszz26GqGdK2xTUClzG1brjrJw RPkX5jbcXcSZ/0RScCKF4pQELsbzdswvdyQ0dnsVnoIFxUCZffg9618CPJw+9Hcih8Wl nd6A== MIME-Version: 1.0 X-Received: by 10.140.95.179 with SMTP id i48mr52569970qge.4.1425332411971; Mon, 02 Mar 2015 13:40:11 -0800 (PST) Received: by 10.96.39.195 with HTTP; Mon, 2 Mar 2015 13:40:11 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2015 13:40:11 -0800 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Consistent function names From: pierre.php@gmail.com (Pierre Joye) hi, 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. Cheers, Pierre