Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73273 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60312 invoked from network); 18 Mar 2014 15:55:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2014 15:55:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.160.173 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.160.173 mail-yk0-f173.google.com Received: from [209.85.160.173] ([209.85.160.173:50006] helo=mail-yk0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/91-52406-37C68235 for ; Tue, 18 Mar 2014 10:55:33 -0500 Received: by mail-yk0-f173.google.com with SMTP id 10so19558065ykt.4 for ; Tue, 18 Mar 2014 08:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=XuRZ0xdoZbysE3++xxTZNq6f/U6u506dUg5W3He3lI0=; b=YmEyO5bhnvz/DewVVVbkoKLIcPc5qPvxj0AkBOZ4nSCxlrcg9kXCgJVumDVUUlbfQY tT3TwElZVqfFszL4kyg72VGnOIMSSmErpJcIl7M5xYRVL/o68XCDtA2jG6yopj782AUv PXMpSwVAMv7JxpLCi9RUMxIqHetHbdCkq1tYo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XuRZ0xdoZbysE3++xxTZNq6f/U6u506dUg5W3He3lI0=; b=FDAjEUwxqg/+AflKuj2IFBpwVEFrrUOv5pPfyP5e+nY7TN9J77dcn+IZsLbrJlNgZz MPrFuU6hOqOEB1bRX2LEFFE/f2DABW91vCHWTVY4noeZPyl9nWgmCehNsbCvPWrnsKub RWvh6ti+aPq+tvttl8n+e+aBdJfvArAz3e3+Bgu7mB/pRv+039+/rf2IMOnDxSOv1GI2 pNHxusDPNCZaEZ+ugNV1yY8Jcqvw2DXEjlnh73gOE8/wi0pLLvIFTMS2nMpdbWL6T30q SjDHvoTG2KJkuKxyJBJ1eD+SH4vemqFI0tmq4Ao04x1mwiyKnmybeYCqyvokLlhz/ARl ExDg== X-Gm-Message-State: ALoCoQmPIuuIFQ7qNvzMjh+l0OGk6ppoTYvU6a5kP0NONgOgnkqyeV8UQPC5vCVG0hXyKmJhI1GB MIME-Version: 1.0 X-Received: by 10.236.116.131 with SMTP id g3mr2513109yhh.110.1395158128105; Tue, 18 Mar 2014 08:55:28 -0700 (PDT) Received: by 10.170.188.139 with HTTP; Tue, 18 Mar 2014 08:55:27 -0700 (PDT) In-Reply-To: <772CEF30-7D4B-4E68-A698-6EBAFA896777@rouvenwessling.de> References: <53277BE2.8020203@sugarcrm.com> <5327F947.5020308@sugarcrm.com> <772CEF30-7D4B-4E68-A698-6EBAFA896777@rouvenwessling.de> Date: Tue, 18 Mar 2014 17:55:27 +0200 Message-ID: To: =?UTF-8?Q?Rouven_We=C3=9Fling?= Cc: Leigh , Yasuo Ohgaki , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Session: deprecating create_sid() method and add createSid()? From: narf@devilix.net (Andrey Andreev) Hi, On Tue, Mar 18, 2014 at 1:28 PM, Rouven We=C3=9Fling = wrote: > > On 18.03.2014, at 12:17, Leigh wrote: > >> I might be missing something but I have to agree with >> >> On 18 March 2014 07:44, Stas Malyshev wrote: >>> >>> Doing to all this length for what? To rename a function? Looks hardly >>> worth it. >> >> >> The method is named as it is in userland because it maps 1:1 with the >> underlying interface >> >> open -> open >> destroy -> destroy >> create_sid -> create_sid >> >> Seems like a big waste of time, and hassle for people who use it, when y= ou >> go around renaming things for the sake of it. Especially when that's all= it >> is, a rename, no extra functionality. > > I agree, that's hardly worth it. I guess part of the problem in this case= was that it never went trough an RFC (At least I didn't know about it, sin= ce it was never documented I think it's hardly known at all). What would be= great if we could get some clear cut naming conventions for user land APIs= otherwise we will keep making the API more inconsistent. The fact, that it= is mirroring the internal interface is a really bad argument. PHP is a hig= h level language and should abstract these concerns away from users. Couldn't have said it better. Most OO APIs use camelCase, so I guess this was why Yasuo assumed it and proposed this change. I think we should stick to that ... only mysqli comes to mind that uses snake_names and that's probably because it tries to mirror procedural functions. Cheers, Andrey.