Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62818 invoked from network); 16 Feb 2015 10:33:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 10:33:20 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.182 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.182 mail-we0-f182.google.com Received: from [74.125.82.182] ([74.125.82.182:48112] helo=mail-we0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/8D-05176-E67C1E45 for ; Mon, 16 Feb 2015 05:33:19 -0500 Received: by mail-we0-f182.google.com with SMTP id m14so22481147wev.13 for ; Mon, 16 Feb 2015 02:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=nv1UzjxE1xHgcYN+PSCUxjoleRe6+mFgxkL1U4woKYY=; b=gYjynRcHeiOyLM3sKmdM5ypDIEuKuLz8zrrGfb9XoYOCc1qnd/GKSGeodSraffUglB Ps9nI+pzDKwPdMy1O6OMyJb9hw/Jx486mPnezMAVBeBVTdoqrQFFMGWJUxiMzfzm6xds 9i3T4t27kzFQj2WsomnDHetSg9cL3mX8yNJTaZMh+Cn/AzU+1VmKxeZUwF++zZrmPNeo wxpeb4w7sTrYydQAdG+HOo1v5lMPD09RTg5jZsmoVr3u7ptk3LfbJZVApsjcToofbZ/B cUQ8Id7sE1/jVyQJ+RjX2sCzmULHrTQCk8ucRNM+7TC7iQF4Y3pwmtPbBL72++0oR/nL KECA== X-Received: by 10.180.106.103 with SMTP id gt7mr3084045wib.59.1424082795871; Mon, 16 Feb 2015 02:33:15 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id l4sm15044147wiw.9.2015.02.16.02.33.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2015 02:33:15 -0800 (PST) Message-ID: <54E1C72B.8040709@gmail.com> Date: Mon, 16 Feb 2015 10:32:11 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals References: <54E0FBE0.10301@gmail.com> <54E12735.9090103@gmx.de> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] A modest proposal: __contructStatic From: rowan.collins@gmail.com (Rowan Collins) Kris Craig wrote on 16/02/2015 01:40: > > create the static instance > > Isn't that essentially a contradiction in terms? I can't help but > feel that blurring the line between static and non-static > classes/methods would cause more harm than good. > > I've never really done any work with Redis before so I'm also having > trouble understanding the use case for this given that everybody's > talking about this solely in the context of Redis. It's basically like any database connection - in a simple app, you just need a single connection that you can run lots of queries against, so global/singleton access is very convenient. I do see the use case, but am not sure it's compelling enough to add a language feature, given that a similar effect can be achieved using existing features. Regards, -- Rowan Collins [IMSoP]