Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79353 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47322 invoked from network); 1 Dec 2014 19:46:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2014 19:46:54 -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:58937] helo=mail-ig0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/92-32869-DA5CC745 for ; Mon, 01 Dec 2014 14:46:53 -0500 Received: by mail-ig0-f171.google.com with SMTP id z20so9598442igj.4 for ; Mon, 01 Dec 2014 11:46:50 -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=EHnxpDkYQfkrfGGywAcsSsgQE34JPuXag4CRVUUH+Jk=; b=kjIeAVdqkEpA8eBzJk+bOCOrMdeSY/M6NwFcify23Zds4KVtTjiiBihouNdbRmPQt+ 5K4xQutQaIF5Nf5Fj97MS9X6XpBXqeFUtFkA1DllWF7LWTxZET1myM/n/hScZx5c8e0h eMNnp4eYTJfEydAhphAqGowLPtFSf1FFnY09WiEkMGwhb3xxnovaW/Yw8pg0txFprWmB m2Cguu+XmRthkI2XyfefL+2Kz7vFjOBlMyDemRFDOABlUaqsZrHH5vGBc5jE6VKORfIB SgMjNoyjQfT3gKx5Qv2ZqrTJz8JcIaJT3vtZKMhROUWBALyILq/kWSS6oiPPO0aICUOO YSZA== X-Received: by 10.107.131.133 with SMTP id n5mr52797717ioi.30.1417463210017; Mon, 01 Dec 2014 11:46:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.238.75 with HTTP; Mon, 1 Dec 2014 11:46:28 -0800 (PST) In-Reply-To: References: <003c01d00d6e$f4fd77c0$def86740$@tutteli.ch> Date: Mon, 1 Dec 2014 14:46:28 -0500 Message-ID: To: Lars Strojny Cc: Robert Stoll , internals Content-Type: multipart/alternative; boundary=001a113ebbf81d886d05092cdfed Subject: Re: [PHP-DEV] [RFC] Static classes (Was Abstract final classes) From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a113ebbf81d886d05092cdfed Content-Type: text/plain; charset=UTF-8 I'm working on a patch right now and I removed the implicit configuration of static to methods. It's only missing reflection magic. Should be out of the oven in one hour or less. On Mon, Dec 1, 2014 at 2:44 PM, Lars Strojny wrote: > Hi Guilherme, hi Robert. > > > On 01 Dec 2014, at 14:58, Robert Stoll wrote: > > > > I am not sure what makes more sense for PHP, but just as > thought-provoking impulse, wouldn't it be better just to check that all > methods are static and __construct private instead of turning methods > magically into static methods and __construct private? > > I very much like the RFC in its current state except for the implicit > static. While we can preserve the behaviour of automatically turning > methods into static methods, this should indeed trigger a warning. > > cu, > Lars -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --001a113ebbf81d886d05092cdfed--