Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65498 invoked from network); 1 Dec 2014 22:33:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2014 22:33:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.171 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.213.171 mail-ig0-f171.google.com Received: from [209.85.213.171] ([209.85.213.171:60230] helo=mail-ig0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/95-32869-2CCEC745 for ; Mon, 01 Dec 2014 17:33:39 -0500 Received: by mail-ig0-f171.google.com with SMTP id z20so9872878igj.10 for ; Mon, 01 Dec 2014 14:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=yNbJqTbrKDmm2NfKobLGmUDG2e7oKymqm0mhNFDlcE4=; b=THwifpOU9QuAhpZaNTZuAKnGV8NOHzcwuTRQgQybrc2AIGh5gVdWKJ5wHiGB4C1fNO qWe3JV65obO0Bf+Qfmuz8Aw7WZVqZZ3Db9nTeyW26PX/guJkFchYgzUR4NIuuotVn4e1 2DDdRPFrHtWbmf2/BeMvtHh5UKO7exVGOgQPc+nRXhmGu1VRhN2KyYnMNTNr0M1dSWbU pPaichf12ICTLecpXspFtYVYfe5I9P9U9P/uMgcmYFq2JUIX2EpyAk3Daag0Owpa+UAu x0MUXL135zn2oVUQpAliB1GFjyWc1P+q/EKIQLTOGsZmpIz9vRQrfK3Wz65pClYv1kut bMbQ== X-Received: by 10.50.43.202 with SMTP id y10mr48522134igl.41.1417473215809; Mon, 01 Dec 2014 14:33:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.238.75 with HTTP; Mon, 1 Dec 2014 14:33:15 -0800 (PST) In-Reply-To: <10AF7FA1-4CC2-4DAD-A504-42939B5C98D4@gmail.com> References: <003c01d00d6e$f4fd77c0$def86740$@tutteli.ch> <868FD3D8-4E80-46F4-872A-125D3FD8F40D@ajf.me> <547CA967.20607@gmail.com> <6ADEDB62-987A-45B7-A677-D7C683906BA4@ajf.me> <10AF7FA1-4CC2-4DAD-A504-42939B5C98D4@gmail.com> Date: Mon, 1 Dec 2014 17:33:15 -0500 Message-ID: To: Rowan Collins Cc: internals Content-Type: multipart/alternative; boundary=089e011604ba81d13005092f3395 Subject: Re: [PHP-DEV] [RFC] Static classes (Was Abstract final classes) From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --089e011604ba81d13005092f3395 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable PR with this feature request: https://github.com/php/php-src/pull/929 On Mon, Dec 1, 2014 at 4:56 PM, Rowan Collins wrote: > On 1 December 2014 20:30:46 GMT, Andrea Faulds wrote: > > > > The problem is that, well, global state is rarely a good thing, I don= =E2=80=99t > think we should be encouraging it. > > To get a bit philosophical: Is it really the language's job to make that > decision? Is there a difference between "encouraging", "allowing", and > "enabling"? > > Purely static classes are a reality whether this feature is added or not. > They do things namespaces can't (and probably shouldn't), but are simpler > to work with than singletons (which they closely resemble) or full-blown > Dependency Injection. Declaring a static class is just a way of > acknowledging that this is a deliberate decision, and instance members > should not be added. > > Regards, > -- > Rowan Collins > [IMSoP] > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --089e011604ba81d13005092f3395--